config: Remove context field

No longer used.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2018-08-24 19:18:03 +02:00 committed by Daniel Wagner
parent 4acde53b94
commit 52fdc4f4ae
3 changed files with 0 additions and 9 deletions

View File

@ -74,7 +74,6 @@ class Build:
ctx = create_global_context()
ctx.config = Config(args.config, args.target, args.task)
ctx.config.set_context(ctx)
macro = Macro()

View File

@ -40,19 +40,12 @@ class Config:
self.filename = os.path.abspath(filename)
self.handler = IncludeHandler(self.filename)
self.repo_dict = self._get_repo_dict()
self.context = None
if target:
self._config['target'] = target
if task:
self._config['task'] = task
def set_context(self, ctx):
"""
Set a reference to the ctx that includes this config
"""
self.context = ctx
def find_missing_repos(self):
"""
Returns repos that are in config but not on disk

View File

@ -78,7 +78,6 @@ class Shell:
ctx = create_global_context()
ctx.config = Config(args.config, args.target, None)
ctx.config.set_context(ctx)
macro = Macro()