Skip to content

Commit 40958fd

Browse files
committed
refactor: clean up unused functions
Signed-off-by: James McCorrie <[email protected]>
1 parent 75d91a3 commit 40958fd

File tree

7 files changed

+356
-849
lines changed

7 files changed

+356
-849
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ dependencies = [
2222
"hjson>=3.1.0",
2323
"jinja2>=3.1.6",
2424
"logzero>=1.7.0",
25-
"mistletoe>=1.4.0",
26-
"premailer>=3.10.0",
2725
"pydantic>=2.9.2",
2826
"pyyaml>=6.0.2",
2927
"tabulate>=0.9.0",

src/dvsim/flow/base.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,6 @@ def gen_results(self, results: Sequence[CompletedJobStatus]) -> None:
509509
path=reports_dir,
510510
)
511511

512-
def _get_results_page_link(self, relative_to: str, link_text: str = "") -> str:
513-
"""Create a relative markdown link to the results page."""
514-
link_text = link_text if link_text else self.name.upper()
515-
relative_link = os.path.relpath(self.results_page, relative_to)
516-
return f"[{link_text}]({relative_link})"
517-
518512
def has_errors(self) -> bool:
519513
"""Return error state."""
520514
return self.errors_seen

src/dvsim/flow/style.css

Lines changed: 0 additions & 125 deletions
This file was deleted.

src/dvsim/testplan.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from typing import TextIO
1313

1414
import hjson
15-
import mistletoe
1615
from tabulate import tabulate
1716

1817

@@ -762,9 +761,6 @@ def get_sim_results(self, sim_results_file, fmt="md"):
762761
cov_results = sim_results.get("cov_results", [])
763762
text += self.get_cov_results_table(cov_results)
764763

765-
if fmt == "html":
766-
text = self.get_dv_style_css() + mistletoe.markdown(text)
767-
text = text.replace("<table>", '<table class="dv">')
768764
return text
769765

770766

src/dvsim/utils/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
rm_path,
1515
)
1616
from dvsim.utils.hjson import parse_hjson
17-
from dvsim.utils.html import htmc_color_pc_cells, md_results_to_html
1817
from dvsim.utils.status_printer import (
1918
EnlightenStatusPrinter,
2019
StatusPrinter,
@@ -37,8 +36,6 @@
3736
"check_int",
3837
"clean_odirs",
3938
"find_and_substitute_wildcards",
40-
"htmc_color_pc_cells",
41-
"md_results_to_html",
4239
"mk_path",
4340
"mk_symlink",
4441
"parse_hjson",

src/dvsim/utils/html.py

Lines changed: 0 additions & 189 deletions
This file was deleted.

0 commit comments

Comments
 (0)