Remove unused ceil_int helper

This commit is contained in:
Zhizhen He 2026-11-09 20:06:40 +08:00
parent d49e07db22
commit 401cb7ca72

View file

@ -2,7 +2,6 @@
# License: GPL v3 Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net>
import fcntl
import math
import os
import re
import string
@ -153,10 +152,6 @@ def suppress_error_logging() -> Generator[None, None, None]:
setattr(log_error, 'redirect', before)
def ceil_int(x: float) -> int:
return int(math.ceil(x))
def sanitize_title(x: str) -> str:
return re.sub(r'\s+', ' ', re.sub(r'[\0-\x19\x80-\x9f]', '', x))