From 056dd4d68ef07d9d7efe1c05b0e99939ecf5b126 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 24 Feb 2012 20:40:17 +0900 Subject: [PATCH] remove some dead code thanks to richard --- anki/collection.py | 2 -- anki/tags.py | 1 - 2 files changed, 3 deletions(-) diff --git a/anki/collection.py b/anki/collection.py index c6e64441d..6ccdd37bc 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -269,7 +269,6 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?, conf=?""", def findTemplates(self, note): "Return (active), non-empty templates." - ok = [] model = note.model() avail = self.models.availOrds(model, joinFields(note.fields)) ok = [] @@ -298,7 +297,6 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?, conf=?""", "select id, mid, did, flds from notes where id in "+snids): model = self.models.get(mid) avail = self.models.availOrds(model, flds) - ok = [] for t in model['tmpls']: doHave = nid in have and t['ord'] in have[nid] # if have ord but empty, add cid to remove list diff --git a/anki/tags.py b/anki/tags.py index 86430e9cb..0c115b545 100644 --- a/anki/tags.py +++ b/anki/tags.py @@ -151,7 +151,6 @@ class TagManager(object): ########################################################################## def selTagNids(self, yes, no): - l = [] # find notes that match yes lim = "" args = []