gh-101341: Remove unncessary enum._power_of_two function (gh-101342)

This commit is contained in:
Dong-hee Na 2023-01-28 11:08:08 +09:00 committed by GitHub
parent b5c4d6064c
commit 8cef9c0f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1565,11 +1565,6 @@ def unique(enumeration):
(enumeration, alias_details)) (enumeration, alias_details))
return enumeration return enumeration
def _power_of_two(value):
if value < 1:
return False
return value == 2 ** _high_bit(value)
def _dataclass_repr(self): def _dataclass_repr(self):
dcf = self.__dataclass_fields__ dcf = self.__dataclass_fields__
return ', '.join( return ', '.join(