Remove unused code
This commit is contained in:
parent
ed75ad0d41
commit
1e3d3df9b8
1 changed files with 0 additions and 9 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue