* morituri/image/image.py:

Remove dead code.
This commit is contained in:
Thomas Vander Stichele
2010-04-13 22:10:58 +00:00
parent cee915fbd2
commit 5b965a757b
2 changed files with 5 additions and 28 deletions

View File

@@ -1,3 +1,8 @@
2010-04-14 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/image/image.py:
Remove dead code.
2010-04-14 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/encode.py:

View File

@@ -294,31 +294,3 @@ class ImageEncodeTask(task.MultiSeparateTask):
self.debug('encoding track %d', trackIndex + 1)
index = track.indexes[1]
add(index)
class ImageRetagTask(task.MultiSeparateTask):
"""
I retag files in a disk image.
"""
description = "Retagging tracks"
def __init__(self, image, taglists):
task.MultiSeparateTask.__init__(self)
# here to avoid import gst eating our options
from morituri.common import encode
self._image = image
self._taglists = taglists
cue = image.cue
self._tasks = []
self.lengths = {}
for trackIndex, track in enumerate(cue.table.tracks):
self.debug('retagging track %d', trackIndex + 1)
index = track.indexes[1]
path = image.getRealPath(index.path)
assert type(path) is unicode, "%r is not unicode" % path
self.debug('schedule retag of %r', path)
root, ext = os.path.splitext(os.path.basename(path))
taskk = encode.RetagTask(path, taglists[trackIndex])