config: Remove context field
No longer used. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
4acde53b94
commit
52fdc4f4ae
@ -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()
|
||||
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user