remove obsolete code

This commit is contained in:
Damien Elmes 2008-11-21 20:24:23 +09:00
parent 447985fc87
commit 90487d86ad
2 changed files with 1 additions and 4 deletions

View file

@ -15,7 +15,7 @@ Model - define the way in which facts are added and shown
import time import time
from sqlalchemy.ext.orderinglist import ordering_list from sqlalchemy.ext.orderinglist import ordering_list
from anki.db import * from anki.db import *
from anki.utils import genID, canonifyTags, safeClassName from anki.utils import genID, canonifyTags
from anki.fonts import toPlatformFont from anki.fonts import toPlatformFont
from anki.utils import parseTags, hexifyID, checksum from anki.utils import parseTags, hexifyID, checksum
from anki.lang import _ from anki.lang import _

View file

@ -208,8 +208,5 @@ This is safe if you use sqlite primary key columns, which are guaranteed
to be integers.""" to be integers."""
return "(%s)" % ",".join([str(i) for i in ids]) return "(%s)" % ",".join([str(i) for i in ids])
def safeClassName(name):
return name
def checksum(data): def checksum(data):
return md5(data).hexdigest() return md5(data).hexdigest()