Skip to content

Commit

Permalink
OptionStore: remove unused build_options attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Mar 3, 2025
1 parent 060fdef commit 74c6717
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion mesonbuild/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,6 @@ def __init__(self, is_cross: bool) -> None:
self.module_options: T.Set[OptionKey] = set()
from .compilers import all_languages
self.all_languages = set(all_languages)
self.build_options = None
self.project_options = set()
self.augments: T.Dict[str, str] = {}
self.pending_project_options: T.Dict[OptionKey, str] = {}
Expand Down
4 changes: 1 addition & 3 deletions unittests/optiontests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@


def num_options(store: OptionStore) -> int:
basic = len(store.options)
build = len(store.build_options) if store.build_options else 0
return basic + build
return len(store.options)


class OptionTests(unittest.TestCase):
Expand Down

0 comments on commit 74c6717

Please sign in to comment.