mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Remove unused code
This commit is contained in:
parent
080c19b966
commit
cf1a6aea96
@ -520,13 +520,6 @@ relpath = os.path.relpath
|
||||
_spat = re.compile(r'^the\s+|^a\s+|^an\s+', re.IGNORECASE)
|
||||
|
||||
|
||||
def english_sort(x, y):
|
||||
'''
|
||||
Comapare two english phrases ignoring starting prepositions.
|
||||
'''
|
||||
return cmp(_spat.sub('', x), _spat.sub('', y))
|
||||
|
||||
|
||||
def walk(dir):
|
||||
''' A nice interface to os.walk '''
|
||||
for record in os.walk(dir):
|
||||
|
Loading…
x
Reference in New Issue
Block a user