mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
remove some dead code thanks to richard
This commit is contained in:
parent
d06dccad32
commit
056dd4d68e
2 changed files with 0 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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 = []
|
||||||
|
|
Loading…
Reference in a new issue