From 0095908a9d4e6852998682ffa991092c06b867b4 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 29 Jan 2024 10:30:18 -0800 Subject: [PATCH] interpreter: remove Interpreter.generators Which is built, but never used --- mesonbuild/interpreter/interpreter.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 418042782..d7523e7ea 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -289,7 +289,6 @@ class Interpreter(InterpreterBase, HoldableObject): self.ast = ast self.sanity_check_ast() self.builtin.update({'meson': MesonMain(self.build, self)}) - self.generators: T.List[build.Generator] = [] self.processed_buildfiles: T.Set[str] = set() self.project_args_frozen = False self.global_args_frozen = False # implies self.project_args_frozen @@ -2215,9 +2214,7 @@ class Interpreter(InterpreterBase, HoldableObject): if '@OUTPUT@' in o: raise InvalidArguments('Tried to use @OUTPUT@ in a rule with more than one output.') - gen = build.Generator(args[0], **kwargs) - self.generators.append(gen) - return gen + return build.Generator(args[0], **kwargs) @typed_pos_args('benchmark', str, (build.Executable, build.Jar, ExternalProgram, mesonlib.File, build.CustomTarget, build.CustomTargetIndex)) @typed_kwargs('benchmark', *TEST_KWS)