diff options
author | Anuj Phogat <[email protected]> | 2015-07-29 10:15:03 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2015-07-29 14:46:32 -0700 |
commit | c73a13e9538cab1772b71fb5599e4944c540412e (patch) | |
tree | f166f8362f68f15eeedf36f25936a6acaede54b8 /src/mesa | |
parent | 92994742d079bffdc4c25fdc5a22c7438b7da9c7 (diff) |
Delete unused functions in format parser
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Neil Roberts <[email protected]>
Diffstat (limited to 'src/mesa')
-rwxr-xr-x | src/mesa/main/format_parser.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mesa/main/format_parser.py b/src/mesa/main/format_parser.py index 11184f78e2c..799b14f0b1c 100755 --- a/src/mesa/main/format_parser.py +++ b/src/mesa/main/format_parser.py @@ -40,9 +40,6 @@ SRGB = 'srgb' YUV = 'yuv' ZS = 'zs' -def is_power_of_two(x): - return not bool(x & (x - 1)) - VERY_LARGE = 99999999999999999999999 class Channel: @@ -100,10 +97,6 @@ class Channel: else: return 1 - def is_power_of_two(self): - """Returns true if the size of this channel is a power of two.""" - return is_power_of_two(self.size) - def datatype(self): """Returns the datatype corresponding to a channel type and size""" return _get_datatype(self.type, self.size) |