summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2019-06-27 17:00:26 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-02 18:14:50 +0000
commit3ebec643c73cc996137c1760209de700384bd1b9 (patch)
treef4eccb4b69dbc4cb35d3db9ed2a6b6a366e9f7b3
parenteb30ffba4d7d1d308dd3545b3351f3d5d8a1844e (diff)
downloadbuildstream-3ebec643c73cc996137c1760209de700384bd1b9.tar.gz
_context: remove unused self._directory
-rw-r--r--src/buildstream/_context.py6
-rw-r--r--src/buildstream/_frontend/app.py2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py
index 3f6e6ac3c..38b7b973f 100644
--- a/src/buildstream/_context.py
+++ b/src/buildstream/_context.py
@@ -49,12 +49,9 @@ from .sandbox import SandboxRemote
# verbosity levels and basically anything pertaining to the context
# in which BuildStream was invoked.
#
-# Args:
-# directory (str): The directory that buildstream was invoked in
-#
class Context():
- def __init__(self, directory=None):
+ def __init__(self):
# Filename indicating which configuration file was used, or None for the defaults
self.config_origin = None
@@ -166,7 +163,6 @@ class Context():
self._log_filename = None
self._cascache = None
self._casquota = None
- self._directory = directory
# load()
#
diff --git a/src/buildstream/_frontend/app.py b/src/buildstream/_frontend/app.py
index a0b1d4cba..dafde153c 100644
--- a/src/buildstream/_frontend/app.py
+++ b/src/buildstream/_frontend/app.py
@@ -172,7 +172,7 @@ class App():
# Load the Context
#
try:
- self.context = Context(directory)
+ self.context = Context()
self.context.load(config)
except BstError as e:
self._error_exit(e, "Error loading user configuration")