remove some dead code thanks to richard

This commit is contained in:
Damien Elmes 2012-02-24 20:40:17 +09:00
parent d06dccad32
commit 056dd4d68e
2 changed files with 0 additions and 3 deletions

View file

@ -269,7 +269,6 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?, conf=?""",
def findTemplates(self, note): def findTemplates(self, note):
"Return (active), non-empty templates." "Return (active), non-empty templates."
ok = []
model = note.model() model = note.model()
avail = self.models.availOrds(model, joinFields(note.fields)) avail = self.models.availOrds(model, joinFields(note.fields))
ok = [] ok = []
@ -298,7 +297,6 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?, conf=?""",
"select id, mid, did, flds from notes where id in "+snids): "select id, mid, did, flds from notes where id in "+snids):
model = self.models.get(mid) model = self.models.get(mid)
avail = self.models.availOrds(model, flds) avail = self.models.availOrds(model, flds)
ok = []
for t in model['tmpls']: for t in model['tmpls']:
doHave = nid in have and t['ord'] in have[nid] doHave = nid in have and t['ord'] in have[nid]
# if have ord but empty, add cid to remove list # if have ord but empty, add cid to remove list

View file

@ -151,7 +151,6 @@ class TagManager(object):
########################################################################## ##########################################################################
def selTagNids(self, yes, no): def selTagNids(self, yes, no):
l = []
# find notes that match yes # find notes that match yes
lim = "" lim = ""
args = [] args = []