summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-12-24 09:43:30 +0000
committerDarius Makovsky <traveltissues@protonmail.com>2019-12-24 09:43:30 +0000
commitdc984ff5a28fb2d502457722c8805b59ab34b965 (patch)
tree1e22c90ef9869cf741f5946d774c292c1d9da32f
parente410e860c7c4e95d70604d172b9b7b87f956a033 (diff)
downloadbuildstream-dc984ff5a28fb2d502457722c8805b59ab34b965.tar.gz
sandbox: remove unused _callback
-rw-r--r--src/buildstream/sandbox/sandbox.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/buildstream/sandbox/sandbox.py b/src/buildstream/sandbox/sandbox.py
index 071e23e84..61f5e349b 100644
--- a/src/buildstream/sandbox/sandbox.py
+++ b/src/buildstream/sandbox/sandbox.py
@@ -587,26 +587,6 @@ class Sandbox:
def _get_element_name(self):
return self.__element_name
- # _callback()
- #
- # If this is called outside a batch context, the specified function is
- # invoked immediately.
- #
- # If this is called in a batch context, the function is added to the batch
- # for later invocation.
- #
- # Args:
- # callback (callable): The function to invoke
- #
- def _callback(self, callback):
- if self.__batch:
- batch_call = _SandboxBatchCall(callback)
-
- current_group = self.__batch.current_group
- current_group.append(batch_call)
- else:
- callback()
-
# _disable_run()
#
# Raise exception if `Sandbox.run()` is called. This enables use of