Remove Capability.enabled() - it's unused

This commit is contained in:
jesopo 2019-05-20 16:36:02 +01:00
parent b12c38c326
commit db33e12c8c

View file

@ -283,8 +283,6 @@ class Capability(object):
def available(self, capabilities: typing.Iterable[str]) -> str:
match = list(set(capabilities)&self._caps)
return match[0] if match else None
def enabled(self, capability: str) -> bool:
return capability in self._caps
def copy(self):
return Capability(*self._caps)