From 98fcd8d701bc9c518221ad7c127ee8d0666f9ada Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 31 Oct 2023 11:21:31 -0700 Subject: fix(brec): remove unnused --- hayai/brec.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/hayai/brec.py b/hayai/brec.py index ce656b6..10256ce 100644 --- a/hayai/brec.py +++ b/hayai/brec.py @@ -29,21 +29,6 @@ class MyHTMLParser(HTMLParser): data_html.append(("Data:", data)) - def handle_comment(self, data): - pass - - def handle_entityref(self, name): - c = chr(name2codepoint[name]) - - def handle_charref(self, name): - if name.startswith("x"): - c = chr(int(name[1:], 16)) - else: - c = chr(int(name)) - - def handle_decl(self, data): - pass - def bolding(text): parts = re.findall(r"[^\s]+", text) -- cgit v1.2.3