Skip to content

Commit f672c28

Browse files
committed
Remove unused code
1 parent 8f6a53b commit f672c28

File tree

4 files changed

+0
-38
lines changed

4 files changed

+0
-38
lines changed

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/Test.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,4 @@ struct TestExecutor {
9898
additionalEnvironment: [:]
9999
).stdout
100100
}
101-
102-
/// This returns a path to the build examples folder.
103-
/// Example: '<workingDir>/swift-syntax/Examples/.build/arm64-apple-macosx/debug
104-
private func findExamplesBinPath() throws -> URL {
105-
let stdOut = try findSwiftpmBinPath(packageDir: Paths.examplesDir)
106-
return URL(fileURLWithPath: stdOut.trimmingCharacters(in: .whitespacesAndNewlines))
107-
}
108101
}

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/Paths.swift

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,30 +48,6 @@ enum Paths {
4848
.appendingPathComponent("SwiftRefactorExtension.xcodeproj")
4949
}
5050

51-
static var workspaceDir: URL {
52-
packageDir
53-
.deletingLastPathComponent()
54-
}
55-
56-
static var llvmDir: URL {
57-
workspaceDir
58-
.appendingPathComponent("llvm-project")
59-
.appendingPathComponent("llvm")
60-
}
61-
62-
static var litExec: URL {
63-
llvmDir
64-
.appendingPathComponent("utils")
65-
.appendingPathComponent("lit")
66-
.appendingPathComponent("lit.py")
67-
}
68-
69-
static var python3Exec: URL {
70-
get throws {
71-
return try lookupExecutable(for: "python3")
72-
}
73-
}
74-
7551
static var diffExec: URL {
7652
get throws {
7753
return try lookupExecutable(for: "diff")

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/ProcessRunner.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ class SigIntListener {
3737

3838
/// Provides convenience APIs for launching and gathering output from a subprocess
3939
public class ProcessRunner {
40-
private static let serialQueue = DispatchQueue(label: "\(ProcessRunner.self)")
41-
4240
private let process: Process
4341

4442
public init(

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/SwiftPMBuilder.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ struct SwiftPMBuilder {
6464
self.verbose = verbose
6565
}
6666

67-
func buildProduct(productName: String) throws {
68-
logSection("Building product " + productName)
69-
try build(packageDir: Paths.packageDir, name: productName, isProduct: true)
70-
}
71-
7267
func buildTarget(packageDir: URL, targetName: String) throws {
7368
logSection("Building target " + targetName)
7469
try build(packageDir: packageDir, name: targetName, isProduct: false)

0 commit comments

Comments
 (0)