From 89445afc94125e488c7185b7ba655976c7ec09ed Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 16 Jan 2012 10:13:14 +0900 Subject: [PATCH] remove unused sendHome() for now --- anki/decks.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/anki/decks.py b/anki/decks.py index f4948c571..258a1c600 100644 --- a/anki/decks.py +++ b/anki/decks.py @@ -262,12 +262,6 @@ class DeckManager(object): c = self.current() self.select(c['id']) - def sendHome(self, cids): - self.col.db.execute(""" -update cards set did=(select did from notes f where f.id=nid), -usn=?,mod=? where id in %s""" % ids2str(cids), - self.col.usn(), intTime(), did) - def cids(self, did): return self.col.db.list("select id from cards where did=?", did) @@ -287,7 +281,6 @@ usn=?,mod=? where id in %s""" % ids2str(cids), def select(self, did): "Select a new branch." - name = self.decks[str(did)]['name'] # current deck self.col.conf['curDeck'] = did # and active decks (current + all children)