Bug 1241022 - Remove code handling affected_tiers. r=gps

This commit is contained in:
Mike Hommey 2016-01-20 15:59:40 +09:00
parent fef6763796
commit 1288330dfb
3 changed files with 0 additions and 13 deletions

View File

@ -921,11 +921,6 @@ class RecursiveMakeBackend(CommonBackend):
# registered or not.
self._traversal.add(backend_file.relobjdir)
affected_tiers = set(obj.affected_tiers)
for tier in set(self._no_skip.keys()) & affected_tiers:
self._no_skip[tier].add(backend_file.relobjdir)
def _process_defines(self, obj, backend_file, which='DEFINES'):
"""Output the DEFINES rules to the given backend file."""
defines = list(obj.get_defines())

View File

@ -235,13 +235,6 @@ class Context(KeyedDefaultDict):
update[key] = value
KeyedDefaultDict.update(self, update)
def get_affected_tiers(self):
"""Returns the list of tiers affected by the variables set in the
context.
"""
tiers = (VARIABLES[key][3] for key in self if key in VARIABLES)
return set(tier for tier in tiers if tier)
class TemplateContext(Context):
def __init__(self, template=None, allowed_variables={}, config=None):

View File

@ -1309,7 +1309,6 @@ class TreeMetadataEmitter(LoggingMixin):
def _emit_directory_traversal_from_context(self, context):
o = DirectoryTraversal(context)
o.dirs = context.get('DIRS', [])
o.affected_tiers = context.get_affected_tiers()
# Some paths have a subconfigure, yet also have a moz.build. Those
# shouldn't end up in self._external_paths.