removed deprecated checko for mtime!=None

This commit is contained in:
Peter Kessen 2015-09-30 16:40:30 +02:00
parent 35497ff696
commit 6993449602

View file

@ -73,11 +73,6 @@ class ImportAddedPlugin(BeetsPlugin):
"""Write the given mtime to an item's `mtime` field and to the mtime """Write the given mtime to an item's `mtime` field and to the mtime
of the item's file. of the item's file.
""" """
if mtime is None:
self._log.warn(u"No mtime to be preserved for item '{0}'",
util.displayable_path(item.path))
return
# The file's mtime on disk must be in sync with the item's mtime # The file's mtime on disk must be in sync with the item's mtime
self.write_file_mtime(util.syspath(item.path), mtime) self.write_file_mtime(util.syspath(item.path), mtime)
item.mtime = mtime item.mtime = mtime