summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/checkdeps/checkdeps.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/checkdeps/checkdeps.py b/tools/checkdeps/checkdeps.py
index 5649a98..e7c49a2 100755
--- a/tools/checkdeps/checkdeps.py
+++ b/tools/checkdeps/checkdeps.py
@@ -243,12 +243,9 @@ def ApplyDirectoryRules(existing_rules, dir_name):
# Check the DEPS file in this directory.
if VERBOSE:
print "Applying rules from", dir_name
- def FromImpl(unused, unused2):
+ def FromImpl(unused):
pass # NOP function so "From" doesn't fail.
- def FileImpl(unused):
- pass # NOP function so "File" doesn't fail.
-
class _VarImpl:
def __init__(self, local_scope):
self._local_scope = local_scope
@@ -260,9 +257,7 @@ def ApplyDirectoryRules(existing_rules, dir_name):
raise Error("Var is not defined: %s" % var_name)
local_scope = {}
- global_scope = {"From": FromImpl,
- "File": FileImpl,
- "Var": _VarImpl(local_scope).Lookup}
+ global_scope = {"From": FromImpl, "Var": _VarImpl(local_scope).Lookup}
deps_file = os.path.join(dir_name, "DEPS")
if os.path.isfile(deps_file):