aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemmo Nieminen <hemmo.nieminen@iki.fi>2018-03-01 00:08:37 +0200
committerHemmo Nieminen <hemmo.nieminen@iki.fi>2018-03-01 01:06:51 +0200
commitb0446075ec8e7e3e1506610f03417da14d4a7b08 (patch)
tree3a6ec8dc9a1d30af8037e6de01c75f107f8926f4
parent59e7ea169f3d875b2dfefc0d7a41a2ea9eca08f0 (diff)
downloadmeson-b0446075ec8e7e3e1506610f03417da14d4a7b08.zip
meson-b0446075ec8e7e3e1506610f03417da14d4a7b08.tar.gz
meson-b0446075ec8e7e3e1506610f03417da14d4a7b08.tar.bz2
Remove some unused variables.
-rw-r--r--mesonbuild/backend/ninjabackend.py5
-rw-r--r--mesonbuild/environment.py1
2 files changed, 1 insertions, 5 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 8577bc7..ff8bbed 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import os, pickle, re, shlex, subprocess, sys
+import os, pickle, re, shlex, subprocess
from collections import OrderedDict
from pathlib import PurePath
@@ -115,7 +115,6 @@ class NinjaBuildElement:
(name, elems) = e
should_quote = name not in raw_names
line = ' %s = ' % name
- noq_templ = "%s"
newelems = []
for i in elems:
if not should_quote or i == '&&': # Hackety hack hack
@@ -1852,7 +1851,6 @@ rule FORTRAN_DEP_HACK
infilelist = genlist.get_inputs()
outfilelist = genlist.get_outputs()
extra_dependencies = [os.path.join(self.build_to_src, i) for i in genlist.extra_depends]
- source_target_dir = self.get_target_source_dir(target)
for i in range(len(infilelist)):
if len(generator.outputs) == 1:
sole_output = os.path.join(self.get_target_private_dir(target), outfilelist[i])
@@ -1877,7 +1875,6 @@ rule FORTRAN_DEP_HACK
# We have consumed output files, so drop them from the list of remaining outputs.
if sole_output == '':
outfilelist = outfilelist[len(generator.outputs):]
- relout = self.get_target_private_dir(target)
args = self.replace_paths(target, args, override_subdir=subdir)
cmdlist = exe_arr + self.replace_extra_args(args, genlist)
if generator.capture:
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index ccd85d5..4a63410 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -19,7 +19,6 @@ from .linkers import ArLinker, VisualStudioLinker
from . import mesonlib
from .mesonlib import EnvironmentException, Popen_safe
from . import mlog
-import sys
from . import compilers
from .compilers import (