Skip to content

Commit 7b16f34

Browse files
author
A. Jesse Jiryu Davis
committed
Unused code in Sphinx extension.
1 parent 56753b8 commit 7b16f34

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

doc/mongo_extensions.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"""MongoDB specific extensions to Sphinx."""
1616

1717
from docutils import nodes
18-
from docutils.writers import html4css1
1918
from sphinx import addnodes
2019
from sphinx.util.compat import (Directive,
2120
make_admonition)
@@ -59,8 +58,6 @@ class MongodocDirective(Directive):
5958
option_spec = {}
6059

6160
def run(self):
62-
env = self.state.document.settings.env
63-
6461
return make_admonition(mongodoc, self.name,
6562
['See general MongoDB documentation'],
6663
self.options, self.content, self.lineno,
@@ -69,8 +66,6 @@ def run(self):
6966

7067

7168
def process_mongodoc_nodes(app, doctree, fromdocname):
72-
env = app.builder.env
73-
7469
for node in doctree.traverse(mongodoc):
7570
anchor = None
7671
for name in node.parent.parent.traverse(addnodes.desc_signature):

0 commit comments

Comments
 (0)