interpreter: delete dead code in func_declare_dependency

pull/11780/merge
Dylan Baker 2 years ago
parent 7abd4d39c1
commit bf036f37cd
  1. 3
      mesonbuild/interpreter/interpreter.py

@ -720,9 +720,6 @@ class Interpreter(InterpreterBase, HoldableObject):
continue
if p.is_absolute() and p.is_dir() and srcdir / self.root_subdir in [p] + list(Path(os.path.abspath(p)).parents):
variables[k] = P_OBJ.DependencyVariableString(v)
for d in deps:
if not isinstance(d, dependencies.Dependency):
raise InterpreterException('Invalid dependency')
dep = dependencies.InternalDependency(version, incs, compile_args,
link_args, libs, libs_whole, sources, extra_files,

Loading…
Cancel
Save