cc-4105: removed old code that doesn't belong
This commit is contained in:
parent
ce5b3bba8e
commit
b634bc3525
|
@ -66,15 +66,6 @@ class Bootstrapper(Loggable):
|
||||||
else:
|
else:
|
||||||
self.logger.error("Could not find the signal corresponding to path: '%s'" % watch_dir)
|
self.logger.error("Could not find the signal corresponding to path: '%s'" % watch_dir)
|
||||||
|
|
||||||
for to_delete in self.db.difference(songs):
|
|
||||||
for pc in self.watch_channels:
|
|
||||||
if os.path.commonprefix([pc.path, to_delete]) == pc.path:
|
|
||||||
dispatcher.send(signal=pc.signal, sender=self, event=DeleteFile(f))
|
|
||||||
os.remove(to_delete)
|
|
||||||
deleted += 1
|
|
||||||
break
|
|
||||||
else:
|
|
||||||
self.logger.info("Error, could not find watch directory of would be deleted file '%s'" % to_delete)
|
|
||||||
self.logger.info( "Flushed watch directories. (modified, deleted) = (%d, %d)"
|
self.logger.info( "Flushed watch directories. (modified, deleted) = (%d, %d)"
|
||||||
% (modded, deleted) )
|
% (modded, deleted) )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue