Skip to content

Commit 1b38001

Browse files
authored
Merge pull request swiftlang#187 from xedin/remove-unused-checkout
NFC: Remove unused `checkout` function, all builders use local method…
2 parents d07ca24 + f5bac66 commit 1b38001

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

project.py

-12
Original file line numberDiff line numberDiff line change
@@ -228,18 +228,6 @@ def test_swift_package(path, swiftc, sandbox_profile,
228228
env=env)
229229

230230

231-
def checkout(root_path, repo, commit):
232-
"""Checkout an indexed repository."""
233-
path = os.path.join(root_path, repo['path'])
234-
if repo['repository'] == 'Git':
235-
if os.path.exists(path):
236-
return common.git_update(repo['url'], commit, path)
237-
else:
238-
return common.git_clone(repo['url'], path, tree=commit)
239-
raise common.Unreachable('Unsupported repository: %s' %
240-
repo['repository'])
241-
242-
243231
def strip_resource_phases(repo_path, stdout=sys.stdout, stderr=sys.stderr):
244232
"""Strip resource build phases from a given project."""
245233
command = ['perl', '-i', '-00ne',

project_future.py

-12
Original file line numberDiff line numberDiff line change
@@ -225,18 +225,6 @@ def test_swift_package(path, swiftc, sandbox_profile,
225225
env=env)
226226

227227

228-
def checkout(root_path, repo, commit):
229-
"""Checkout an indexed repository."""
230-
path = os.path.join(root_path, repo['path'])
231-
if repo['repository'] == 'Git':
232-
if os.path.exists(path):
233-
return common.git_update(repo['url'], commit, path)
234-
else:
235-
return common.git_clone(repo['url'], path, tree=commit)
236-
raise common.Unreachable('Unsupported repository: %s' %
237-
repo['repository'])
238-
239-
240228
def strip_resource_phases(repo_path, stdout=sys.stdout, stderr=sys.stderr):
241229
"""Strip resource build phases from a given project."""
242230
command = ['perl', '-i', '-00ne',

0 commit comments

Comments
 (0)