From 9c9a9acc45a3ddb6609174c9df5a9cec54cbd54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6k=C3=A7en=20Nurlu?= Date: Wed, 6 Dec 2017 15:15:28 +0000 Subject: Remove unused variables --- buildstream/_pipeline.py | 1 - buildstream/sandbox/_sandboxbwrap.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/buildstream/_pipeline.py b/buildstream/_pipeline.py index 26e79cc5f..5c39375cc 100644 --- a/buildstream/_pipeline.py +++ b/buildstream/_pipeline.py @@ -423,7 +423,6 @@ class Pipeline(): self.message(MessageType.START, "Starting build") elapsed, status = scheduler.run(queues) - built = len(build.processed_elements) if status == SchedStatus.ERROR: self.message(MessageType.FAIL, "Build failed", elapsed=elapsed) diff --git a/buildstream/sandbox/_sandboxbwrap.py b/buildstream/sandbox/_sandboxbwrap.py index 9367b1d36..f926e3de2 100644 --- a/buildstream/sandbox/_sandboxbwrap.py +++ b/buildstream/sandbox/_sandboxbwrap.py @@ -55,8 +55,6 @@ class SandboxBwrap(Sandbox): def run(self, command, flags, *, cwd=None, env=None): stdout, stderr = self._get_output() root_directory = self.get_directory() - scratch_directory = self._get_scratch_directory() - scratch_tempdir = os.path.join(scratch_directory, 'temp') # Fallback to the sandbox default settings for # the cwd and env. -- cgit v1.2.1