Revert "don't delete dangling facts when deleting cards" hack

We don't need this any more as we do conflict handling.

This reverts commit 880219567e.
This commit is contained in:
Damien Elmes 2010-07-21 18:37:35 +09:00
parent 6852b0acda
commit f3d2965e12

View file

@ -1237,6 +1237,8 @@ where facts.id not in (select distinct factId from cards)""")
# delete unused
self.s.statement("delete from tags where id in %s and priority = 2" %
ids2str(unused))
# remove any dangling facts
self.deleteDanglingFacts()
self.rebuildCounts()
self.refresh()
self.flushMod()