From a9e636a50b82369dea9ac99192cd39809ae6c0cd Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 1 Jan 2016 03:56:14 +0100 Subject: [PATCH 1/2] Remove unused local variable. --- utils/name-compression/HuffGen.py | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/name-compression/HuffGen.py b/utils/name-compression/HuffGen.py index 4a1950b4f19d5..24f9585f176ec 100644 --- a/utils/name-compression/HuffGen.py +++ b/utils/name-compression/HuffGen.py @@ -16,7 +16,6 @@ def addLine(line): """ Analyze the frequency of letters in \p line. """ - max_string_length = 8 for c in line: hist[c] += 1 # Read all of the input files and analyze the content of the files. From 6b73cabf0887f41f45250b001fc71dc250a62230 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Fri, 1 Jan 2016 03:57:06 +0100 Subject: [PATCH 2/2] Remove unused imports. --- utils/name-compression/HuffGen.py | 2 +- utils/update-checkout | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/name-compression/HuffGen.py b/utils/name-compression/HuffGen.py index 24f9585f176ec..0ff42d10220a7 100644 --- a/utils/name-compression/HuffGen.py +++ b/utils/name-compression/HuffGen.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import sys -from heapq import heappush, heappop, heapify +from heapq import heappush, heappop from collections import defaultdict filenames = sys.argv[1:] diff --git a/utils/update-checkout b/utils/update-checkout index b3eba3631c25b..0b4a71194c931 100755 --- a/utils/update-checkout +++ b/utils/update-checkout @@ -21,7 +21,6 @@ from SwiftBuildSupport import ( SWIFT_SOURCE_ROOT, WorkingDirectory, check_call, - check_output, ) def update_working_copy(repo_path):