Skip to content

Commit 36d4d41

Browse files
Merge pull request #2106 from practicalswift/python-fixes-20160408
[Python] Remove unused code.
2 parents b0d2ce9 + a7f942f commit 36d4d41

File tree

1 file changed

+0
-22
lines changed
  • utils/swift_build_support/swift_build_support

1 file changed

+0
-22
lines changed

utils/swift_build_support/swift_build_support/debug.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,6 @@ def _output(args):
2828
return None
2929

3030

31-
def get_xcode_sdks():
32-
"""
33-
A generator for canonical Xcode SDK identifiers (e.g. 'macosx10.11' or
34-
'iphonesimulator9.2') available in the currently selected Xcode.
35-
36-
:return: A generator of SDK identifiers (strings).
37-
"""
38-
try:
39-
command = ['xcodebuild', '-showsdks']
40-
out = subprocess.check_output(command, stderr=subprocess.PIPE)
41-
lines = [line.rstrip() for line in out.splitlines()]
42-
import pdb
43-
sdk_flag = '-sdk'
44-
for line in lines:
45-
if sdk_flag in line:
46-
prefix, identifier = line.split('-sdk')
47-
yield identifier.lstrip().rstrip()
48-
except subprocess.CalledProcessError:
49-
pass
50-
51-
5231
def print_xcodebuild_versions(file=sys.stdout):
5332
"""
5433
Print the host machine's `xcodebuild` version, as well as version
@@ -60,4 +39,3 @@ def print_xcodebuild_versions(file=sys.stdout):
6039
file=file)
6140
# You can't test beyond this because each developer's machines may have
6241
# a different set of SDKs installed.
63-

0 commit comments

Comments
 (0)