Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 6532887

Browse files
committed
Remove un-used functions
1 parent 8b0c706 commit 6532887

File tree

5 files changed

+3
-80
lines changed

5 files changed

+3
-80
lines changed

hoverxref/domains.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from sphinx.util import logging
2-
from .utils import get_ref_xref_data, get_ref_obj_data, get_ref_numref_data
32

43
logger = logging.getLogger(__name__)
54

hoverxref/utils.py

-76
This file was deleted.

tests/examples/python-domain/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ API
99
.. automodule:: hoverxref.extension
1010

1111

12-
.. autofunction:: hoverxref.utils.get_ref_xref_data
12+
.. autofunction:: hoverxref.extension.setup

tests/examples/python-domain/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ This is an example page with a Python Domain role usage.
77

88
:py:mod:`hoverxref.extension`
99

10-
:py:func:`hoverxref.utils.get_ref_xref_data`
10+
:py:func:`hoverxref.extension.setup`

tests/test_htmltag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_python_domain(app, status, warning):
114114
chunks = [
115115
'<a class="hoverxref tooltip reference internal" href="api.html#hoverxref.extension.HoverXRefStandardDomainMixin" title="hoverxref.extension.HoverXRefStandardDomainMixin"><code class="xref py py-class docutils literal notranslate"><span class="pre">This</span> <span class="pre">is</span> <span class="pre">a</span> <span class="pre">:py:class:</span> <span class="pre">role</span> <span class="pre">to</span> <span class="pre">a</span> <span class="pre">Python</span> <span class="pre">object</span></code></a>',
116116
'<a class="hoverxref tooltip reference internal" href="api.html#module-hoverxref.extension" title="hoverxref.extension"><code class="xref py py-mod docutils literal notranslate"><span class="pre">hoverxref.extension</span></code></a>',
117-
'<a class="hoverxref tooltip reference internal" href="api.html#hoverxref.utils.get_ref_xref_data" title="hoverxref.utils.get_ref_xref_data"><code class="xref py py-func docutils literal notranslate"><span class="pre">hoverxref.utils.get_ref_xref_data()</span></code></a>',
117+
'<a class="hoverxref tooltip reference internal" href="api.html#hoverxref.extension.setup" title="hoverxref.extension.setup"><code class="xref py py-func docutils literal notranslate"><span class="pre">hoverxref.extension.setup()</span></code></a>',
118118
]
119119

120120
for chunk in chunks:

0 commit comments

Comments
 (0)