From 2698b5bcb5c6793d26da3c942d1d6b31b24d89da Mon Sep 17 00:00:00 2001 From: Stanislav Pankevich Date: Sun, 10 Nov 2024 23:11:57 +0100 Subject: [PATCH] Code climate: Diff screen view objects: remove unused code --- .../view_objects/diff_screen_results_view_object.py | 11 ----------- .../view_objects/diff_screen_view_object.py | 8 -------- 2 files changed, 19 deletions(-) diff --git a/strictdoc/export/html/generators/view_objects/diff_screen_results_view_object.py b/strictdoc/export/html/generators/view_objects/diff_screen_results_view_object.py index 65eb65276..b52ddf57f 100644 --- a/strictdoc/export/html/generators/view_objects/diff_screen_results_view_object.py +++ b/strictdoc/export/html/generators/view_objects/diff_screen_results_view_object.py @@ -68,22 +68,11 @@ def render_screen(self, jinja_environment: JinjaEnvironment) -> Markup: def render_url(self, url: str) -> Markup: return Markup(self.link_renderer.render_url(url)) - def render_node_link(self, incoming_link, document, document_type) -> str: - return self.link_renderer.render_node_link( - incoming_link, document, document_type - ) - def render_static_url(self, url: str) -> Markup: return Markup(self.link_renderer.render_static_url(url)) def render_static_url_with_prefix(self, url: str) -> str: return self.link_renderer.render_static_url_with_prefix(url) - def render_local_anchor(self, node) -> str: - return self.link_renderer.render_local_anchor(node) - - def is_empty_tree(self) -> bool: - return self.document_tree_iterator.is_empty_tree() - def date_today(self) -> str: return datetime.today().strftime("%Y-%m-%d") diff --git a/strictdoc/export/html/generators/view_objects/diff_screen_view_object.py b/strictdoc/export/html/generators/view_objects/diff_screen_view_object.py index ed223d2b7..b249d714e 100644 --- a/strictdoc/export/html/generators/view_objects/diff_screen_view_object.py +++ b/strictdoc/export/html/generators/view_objects/diff_screen_view_object.py @@ -49,19 +49,11 @@ def render_screen(self, jinja_environment: JinjaEnvironment) -> Markup: def render_url(self, url: str) -> Markup: return Markup(self.link_renderer.render_url(url)) - def render_node_link(self, incoming_link, document, document_type) -> str: - return self.link_renderer.render_node_link( - incoming_link, document, document_type - ) - def render_static_url(self, url: str) -> Markup: return Markup(self.link_renderer.render_static_url(url)) def render_static_url_with_prefix(self, url: str) -> str: return self.link_renderer.render_static_url_with_prefix(url) - def render_local_anchor(self, node) -> str: - return self.link_renderer.render_local_anchor(node) - def date_today(self) -> str: return datetime.today().strftime("%Y-%m-%d")