Skip to content

Commit 335270e

Browse files
Remove local variables that are assigned but never used.
1 parent 99c2c82 commit 335270e

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

utils/gyb.py

-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ def tokenGenerator(self, baseTokens):
478478
elif kind == 'gybLines':
479479

480480
self.codeStartLine = self.posToLine(self.tokenMatch.start('gybLines'))
481-
codeStartPos = self.tokenMatch.end('_indent')
482481
indentation = self.tokenMatch.group('_indent')
483482

484483
# Strip off the leading indentation and %-sign

utils/sil-opt-verify-all-modules.py

-5
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ def get_verify_resource_dir_modules_commands(
7575
commands = []
7676
module_cache_dir = tempfile.mkdtemp(prefix="swift-testsuite-clang-module-cache")
7777
for (subdir, arch, triple) in known_platforms:
78-
platform_frameworks_dir = os.path.join(
79-
subprocess.check_output([
80-
'xcrun', '--toolchain', toolchain_name, '--show-sdk-platform-path'
81-
]).strip(),
82-
'Developer', 'Library', 'Frameworks')
8378
modules_dir = os.path.join(resource_dir, subdir, arch)
8479
print(modules_dir)
8580
modules = glob.glob(os.path.join(modules_dir, '*.swiftmodule'))

utils/swift-bench.py

-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ def runBench(self, name):
298298
return
299299
samples = []
300300
self.log("Running bench: %s, numsamples: %d" % (name, numSamples), 2)
301-
output = ""
302301
for i in range(0,numSamples):
303302
try:
304303
r = self.runCommand([self.tests[name].binary, str(iterScale),

0 commit comments

Comments
 (0)