diff --git a/PRESUBMIT.py b/PRESUBMIT.py index de0e49d6575025..8a81bb0babc1d3 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -1140,12 +1140,6 @@ def _ExtractAddRulesFromParsedDeps(parsed_deps): def _ParseDeps(contents): """Simple helper for parsing DEPS files.""" # Stubs for handling special syntax in the root DEPS file. - def FromImpl(*_): - pass # NOP function so "From" doesn't fail. - - def FileImpl(_): - pass # NOP function so "File" doesn't fail. - class _VarImpl: def __init__(self, local_scope): @@ -1160,8 +1154,6 @@ def Lookup(self, var_name): local_scope = {} global_scope = { - 'File': FileImpl, - 'From': FromImpl, 'Var': _VarImpl(local_scope).Lookup, } exec contents in global_scope, local_scope diff --git a/tools/roll_angle.py b/tools/roll_angle.py index b45b48c1ca3712..83a5cdeabcaa4a 100755 --- a/tools/roll_angle.py +++ b/tools/roll_angle.py @@ -81,7 +81,6 @@ def _ParseDepsDict(deps_content): local_scope = {} var = GClientKeywords.VarImpl({}, local_scope) global_scope = { - 'From': GClientKeywords.FromImpl, 'Var': var.Lookup, 'deps_os': {}, } diff --git a/tools/roll_swiftshader.py b/tools/roll_swiftshader.py index d24a43a7b3e334..8e23b82e66789e 100755 --- a/tools/roll_swiftshader.py +++ b/tools/roll_swiftshader.py @@ -87,7 +87,6 @@ def _ParseDepsDict(deps_content): local_scope = {} var = GClientKeywords.VarImpl({}, local_scope) global_scope = { - 'From': GClientKeywords.FromImpl, 'Var': var.Lookup, 'deps_os': {}, } diff --git a/tools/roll_webgl_conformance.py b/tools/roll_webgl_conformance.py index 7f0bd95e1ab1ec..da9a1bda20d12b 100755 --- a/tools/roll_webgl_conformance.py +++ b/tools/roll_webgl_conformance.py @@ -83,7 +83,6 @@ def _ParseDepsDict(deps_content): local_scope = {} var = GClientKeywords.VarImpl({}, local_scope) global_scope = { - 'From': GClientKeywords.FromImpl, 'Var': var.Lookup, 'deps_os': {}, } diff --git a/tools/roll_webrtc.py b/tools/roll_webrtc.py index 7b3386e6d46a6e..543075f8a17ef1 100755 --- a/tools/roll_webrtc.py +++ b/tools/roll_webrtc.py @@ -96,7 +96,6 @@ def _ParseDepsDict(deps_content): local_scope = {} var = GClientKeywords.VarImpl({}, local_scope) global_scope = { -# 'From': GClientKeywords.FromImpl, 'Var': var.Lookup, 'deps_os': {}, }