summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan van Berkom <tristan@codethink.co.uk>2020-09-21 15:08:37 +0900
committerTristan van Berkom <tristan@codethink.co.uk>2020-09-21 18:29:48 +0900
commitb792b12078f675909fc62c12775fb6c845499f75 (patch)
treead5f90c8d91dd7aba412cac6d0e2c8ef6bf2b668
parentbe7d81b2b1fc4e0a58ed4bee327321f2dafd09f2 (diff)
downloadbuildstream-b792b12078f675909fc62c12775fb6c845499f75.tar.gz
Sandbox: Remove Sandbox.set_output_directory()
This was a dead codepath, not used by any sandbox implementation for any reason, and used to be called inconsistently by some elements.
-rw-r--r--src/buildstream/sandbox/sandbox.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/buildstream/sandbox/sandbox.py b/src/buildstream/sandbox/sandbox.py
index 7b3d67815..eb0a705d7 100644
--- a/src/buildstream/sandbox/sandbox.py
+++ b/src/buildstream/sandbox/sandbox.py
@@ -138,7 +138,6 @@ class Sandbox:
self.__stdout = kwargs["stdout"]
self.__stderr = kwargs["stderr"]
- self._output_directory = None # type: Optional[str]
self._build_directory = None
self._build_directory_always = None
self._vdir = None # type: Optional[Directory]
@@ -180,15 +179,6 @@ class Sandbox:
self.__cwd = directory
- def set_output_directory(self, directory: str) -> None:
- """Sets the output directory - the directory which is preserved
- as an artifact after assembly.
-
- Args:
- directory: An absolute path within the sandbox
- """
- self._output_directory = directory
-
def mark_directory(self, directory: str, *, artifact: bool = False) -> None:
"""Marks a sandbox directory and ensures it will exist