Remove dead code paths.

pull/1810/head
Elliott Sales de Andrade 7 years ago
parent 4abe9a9d78
commit 34e4d32ac7
  1. 1
      mesonbuild/interpreter.py
  2. 3
      mesonbuild/scripts/dist.py

@ -1353,7 +1353,6 @@ class Interpreter(InterpreterBase):
def module_method_callback(self, return_object):
if not isinstance(return_object, ModuleReturnValue):
assert False
raise InterpreterException('Bug in module, it returned an invalid object')
invalues = return_object.new_objects
self.process_new_values(invalues)

@ -140,8 +140,7 @@ def run(args):
error_count = 0
for name in names:
rc = check_dist(name, meson_command) # Check only one.
rc = 0
if rc == 0:
create_hash(name)
error_count += rc
return rc
return 1 if error_count else 0

Loading…
Cancel
Save