fix: remove unused function get_name_by_value

This commit is contained in:
Li Shuzhen 2025-06-03 14:37:43 +08:00 committed by GitHub
parent 8580942225
commit e42a3a5997
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,12 +202,6 @@ class MIoTSpecValueList:
return item.description
return None
def get_name_by_value(self, value: Any) -> Optional[str]:
for item in self.items:
if item.value == value:
return item.name
return None
def dump(self) -> list:
return [item.dump() for item in self.items]