mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
napoleon: Remove unused function
This commit is contained in:
parent
751b7a0251
commit
078aaf5f13
@ -1188,25 +1188,6 @@ class NumpyDocstring(GoogleDocstring):
|
||||
items.append((name, list(rest), role))
|
||||
del rest[:]
|
||||
|
||||
def search_inventory(inventory, name, hint=None):
|
||||
roles = list(inventory.keys())
|
||||
if hint is not None:
|
||||
preferred = [
|
||||
role
|
||||
for role in roles
|
||||
if role.split(":", 1)[-1].startswith(hint)
|
||||
]
|
||||
roles = preferred + [role for role in roles if role not in preferred]
|
||||
|
||||
for role in roles:
|
||||
objects = inventory[role]
|
||||
found = objects.get(name, None)
|
||||
if found is not None:
|
||||
domain, role = role.split(":", 1)
|
||||
return role
|
||||
|
||||
return None
|
||||
|
||||
def translate(func, description, role):
|
||||
translations = self._config.napoleon_type_aliases
|
||||
if role is not None or not translations:
|
||||
|
Loading…
Reference in New Issue
Block a user