summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-01-22 13:19:25 +0100
committerJürg Billeter <j@bitron.ch>2020-02-11 21:08:59 +0100
commitbeb7835082251dc6e790ed14b46bee66d69a210b (patch)
tree7290dd6ce0ddb109afc4c9d6a3fe90fadcddf257
parentbf068f8f680a2afa433c599a1af178894bcab0ce (diff)
downloadbuildstream-beb7835082251dc6e790ed14b46bee66d69a210b.tar.gz
sandbox: Remove unused _SandboxBatchCall
-rw-r--r--src/buildstream/sandbox/_sandboxreapi.py3
-rw-r--r--src/buildstream/sandbox/sandbox.py17
2 files changed, 0 insertions, 20 deletions
diff --git a/src/buildstream/sandbox/_sandboxreapi.py b/src/buildstream/sandbox/_sandboxreapi.py
index 132257b9c..7876a118d 100644
--- a/src/buildstream/sandbox/_sandboxreapi.py
+++ b/src/buildstream/sandbox/_sandboxreapi.py
@@ -220,6 +220,3 @@ class _SandboxREAPIBatch(_SandboxBatch):
label = command.label or cmdline
quoted_label = shlex.quote("'{}'".format(label))
self.script += " || (echo Command {} failed with exitcode $? >&2 ; exit 1)\n".format(quoted_label)
-
- def execute_call(self, call):
- raise SandboxError("SandboxRemote does not support callbacks in command batches")
diff --git a/src/buildstream/sandbox/sandbox.py b/src/buildstream/sandbox/sandbox.py
index e91e890bb..31eb6eb11 100644
--- a/src/buildstream/sandbox/sandbox.py
+++ b/src/buildstream/sandbox/sandbox.py
@@ -655,9 +655,6 @@ class _SandboxBatch:
"Command failed with exitcode {}".format(exitcode), detail=label, collect=self.collect
)
- def execute_call(self, call):
- call.callback()
-
# _SandboxBatchItem()
#
@@ -709,17 +706,3 @@ class _SandboxBatchGroup(_SandboxBatchItem):
def combined_label(self):
return "\n".join(item.combined_label() for item in self.children)
-
-
-# _SandboxBatchCall()
-#
-# A call item in a command batch.
-#
-class _SandboxBatchCall(_SandboxBatchItem):
- def __init__(self, callback):
- super().__init__()
-
- self.callback = callback
-
- def execute(self, batch):
- batch.execute_call(self)