Skip to content

Commit 6566942

Browse files
🔧 MAINTAIN: Removed unused argument (#66)
Co-authored-by: Chris Sewell <[email protected]>
1 parent bb502db commit 6566942

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sphinx_external_toc/parsing.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ def parse_toc_data(data: Dict[str, Any]) -> SiteMap:
121121
file_format=data.get(FILE_FORMAT_KEY),
122122
)
123123

124-
_parse_docs_list(
125-
docs_list, site_map, defaults, "/", depth=1, file_format=file_format
126-
)
124+
_parse_docs_list(docs_list, site_map, defaults, depth=1, file_format=file_format)
127125

128126
return site_map
129127

@@ -296,7 +294,6 @@ def _parse_docs_list(
296294
docs_list: Sequence[Tuple[str, Dict[str, Any]]],
297295
site_map: SiteMap,
298296
defaults: Dict[str, Any],
299-
path: str,
300297
*,
301298
depth: int,
302299
file_format: FileFormat,
@@ -306,7 +303,6 @@ def _parse_docs_list(
306303
:param docs_list: sequence of doc items
307304
:param site_map: site map
308305
:param defaults: default doc item values
309-
:param path: file path, unused
310306
:param depth: recursive depth (starts at 0)
311307
:param file_format: doc item file format
312308
:raises MalformedError: doc file used multiple times
@@ -328,7 +324,6 @@ def _parse_docs_list(
328324
child_docs_list,
329325
site_map,
330326
defaults,
331-
child_path,
332327
depth=depth + 1,
333328
file_format=file_format,
334329
)

0 commit comments

Comments
 (0)