Removed useless add_to_ignore_list()

This commit is contained in:
Virgil Dupras 2010-02-06 12:14:33 +01:00
parent 3c75d2f8b7
commit f7aaea79af
1 changed files with 4 additions and 7 deletions

View File

@ -126,16 +126,13 @@ class DupeGuru(RegistrableApplication, Broadcaster):
except directories.InvalidPathError:
return 2
def add_to_ignore_list(self, dupe):
g = self.results.get_group_of_duplicate(dupe)
for other in g:
if other is not dupe:
self.scanner.ignore_list.Ignore(unicode(other.path), unicode(dupe.path))
def add_selected_to_ignore_list(self):
dupes = self.without_ref(self.selected_dupes)
for dupe in dupes:
self.add_to_ignore_list(dupe)
g = self.results.get_group_of_duplicate(dupe)
for other in g:
if other is not dupe:
self.scanner.ignore_list.Ignore(unicode(other.path), unicode(dupe.path))
self.remove_duplicates(dupes)
def apply_filter(self, filter):