From dc984ff5a28fb2d502457722c8805b59ab34b965 Mon Sep 17 00:00:00 2001 From: Darius Makovsky Date: Tue, 24 Dec 2019 09:43:30 +0000 Subject: sandbox: remove unused _callback --- src/buildstream/sandbox/sandbox.py | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src') 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 -- cgit v1.2.1