interpreter/mesonmain: remove unreachable code

Now that we have type checking, we can be sure that this code is
unreachable, and remove it.
pull/9167/head
Dylan Baker 3 years ago
parent 9795323b86
commit 5a69dbe0cb
  1. 7
      mesonbuild/interpreter/mesonmain.py

@ -120,13 +120,10 @@ class MesonMain(MesonInterpreterObject):
a.target.build_by_default = True
else:
a.build_by_default = True
elif isinstance(a, ExternalProgram):
else:
script_args.extend(a.command)
new = True
else:
raise InterpreterException(
f'Arguments to {name} must be strings, Files, or CustomTargets, '
'Indexes of CustomTargets')
if new:
FeatureNew.single_use(
f'Calling "{name}" with File, CustomTaget, Index of CustomTarget, '

Loading…
Cancel
Save