diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-04 19:27:39 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-06 14:44:31 -0700 |
| commit | 5272395b14e3ef1247091da38221a0c36fdb3290 (patch) | |
| tree | 64e736a9945af289b4f81e613ac6a5a5e8eb4e44 | |
| parent | c6814b7cd54907128a4fb65159ed054b683157db (diff) | |
| download | meson-5272395b14e3ef1247091da38221a0c36fdb3290.tar.gz | |
hotdoc: remove HotdocTargetBuilder.get_value
The method is unused since commit c8aecc768 ("hotdoc module: add partially typed
kwargs", 2022-10-24). Found while looking for callers of OptionStore.get_value.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | mesonbuild/modules/hotdoc.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/mesonbuild/modules/hotdoc.py b/mesonbuild/modules/hotdoc.py index b66a0bf1c..a72bf73c3 100644 --- a/mesonbuild/modules/hotdoc.py +++ b/mesonbuild/modules/hotdoc.py @@ -146,31 +146,6 @@ class HotdocTargetBuilder: self.check_extra_arg_type(arg, value) self.set_arg_value(option, value) - def get_value(self, types, argname, default=None, value_processor=None, - mandatory=False, force_list=False): - if not isinstance(types, list): - types = [types] - try: - uvalue = value = self.kwargs.pop(argname) - if value_processor: - value = value_processor(value) - - for t in types: - if isinstance(value, t): - if force_list and not isinstance(value, list): - return [value], uvalue - return value, uvalue - raise MesonException(f"{argname} field value {value} is not valid," - f" valid types are {types}") - except KeyError: - if mandatory: - raise MesonException(f"{argname} mandatory field not found") - - if default is not None: - return default, default - - return None, None - def add_extension_paths(self, paths: T.Union[T.List[str], T.Set[str]]) -> None: for path in paths: if path in self._extra_extension_paths: |
