remove unused
This commit is contained in:
parent
3f287722fd
commit
b9ab0bea07
1 changed files with 0 additions and 11 deletions
|
|
@ -217,14 +217,3 @@ class PluginMapping:
|
||||||
f"{', '.join(cls.plugins())}"
|
f"{', '.join(cls.plugins())}"
|
||||||
)
|
)
|
||||||
return cls._MAPPING[plugin]
|
return cls._MAPPING[plugin]
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def name_of(cls, plugin_options: OptionsValidator) -> str:
|
|
||||||
"""
|
|
||||||
Returns plugin definition's name.
|
|
||||||
"""
|
|
||||||
for name, plugin_type in cls._MAPPING.items():
|
|
||||||
if plugin_type.plugin_options_type == plugin_options.__class__:
|
|
||||||
return name
|
|
||||||
|
|
||||||
raise ValueError("Plugin name does not exist")
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue