Remove unused code

This commit is contained in:
Kovid Goyal 2019-03-28 09:27:18 +05:30
parent 080c19b966
commit cf1a6aea96
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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):