Remove unused code

This commit is contained in:
Kovid Goyal 2018-03-04 10:59:12 +05:30
parent ed75ad0d41
commit 1e3d3df9b8
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -53,15 +53,6 @@ def ceil_int(x):
return int(math.ceil(x))
@contextmanager
def timeit(name, do_timing=False):
if do_timing:
st = monotonic()
yield
if do_timing:
safe_print('Time for {}: {}'.format(name, monotonic() - st))
def sanitize_title(x):
return re.sub(r'\s+', ' ', re.sub(r'[\0-\x19\x80-\x9f]', '', x))