Skip to content

Commit

Permalink
Rebasing fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Feb 9, 2025
1 parent e829473 commit 80f084e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions mesonbuild/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,11 +797,6 @@ def ensure_and_validate_key(self, key: T.Union[OptionKey, str]) -> OptionKey:
def get_value(self, key: T.Union[OptionKey, str]) -> 'T.Any':
return self.get_value_object(key).value

def num_options(self):
basic = len(self.options)
build = len(self.build_options) if self.build_options else 0
return basic + build

def __len__(self) -> int:
return len(self.options)

Expand Down Expand Up @@ -829,10 +824,6 @@ def get_value_object_for(self, key: 'T.Union[OptionKey, str]') -> 'UserOption[T.
return self.options[parent_key]
return potential

def get_value_object(self, key: T.Union[OptionKey, str]) -> 'UserOption[T.Any]':
key = self.ensure_and_validate_key(key)
return self.options[key]

def get_value_object_and_value_for(self, key: OptionKey):
assert isinstance(key, OptionKey)
vobject = self.get_value_object_for(key)
Expand Down Expand Up @@ -1095,16 +1086,6 @@ def get_value_object(self, key: T.Union[OptionKey, str]) -> 'UserOption[T.Any]':
key = self.ensure_and_validate_key(key)
return self.options[key]

def get_value_object_and_value_for(self, key: OptionKey):
assert isinstance(key, OptionKey)
vobject = self.get_value_object_for(key)
computed_value = vobject.value
if key.subproject is not None:
keystr = str(key)
if keystr in self.augments:
computed_value = vobject.validate_value(self.augments[keystr])
return (vobject, computed_value)

def get_option_from_meson_file(self, key: OptionKey):
assert isinstance(key, OptionKey)
(value_object, value) = self.get_value_object_and_value_for(key)
Expand Down

0 comments on commit 80f084e

Please sign in to comment.