Skip to content

Commit 18c6f5b

Browse files
committed
cleanup
1 parent 6a99db8 commit 18c6f5b

File tree

6 files changed

+4
-20
lines changed

6 files changed

+4
-20
lines changed

Sources/PackageLoading/PackageBuilder.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import Basics
1212
import Dispatch
1313
import PackageModel
1414
import TSCBasic
15-
//import TSCUtility
1615

1716
/// An error in the structure or layout of a package.
1817
public enum ModuleError: Swift.Error {

Sources/PackageLoading/TargetSourcesBuilder.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import Basics
1212
import Foundation
1313
import PackageModel
1414
import TSCBasic
15-
//import TSCUtility
1615

1716
/// A utility to compute the source/resource files of a target.
1817
public struct TargetSourcesBuilder {

Sources/PackageLoading/ToolsVersionLoader.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import Basics
1212
import Foundation
1313
import PackageModel
1414
import TSCBasic
15-
//import TSCUtility
1615

1716
/// Protocol for the manifest loader interface.
1817
public protocol ToolsVersionLoaderProtocol {

Sources/PackageModel/PackageReference.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
See http://swift.org/LICENSE.txt for license information
88
See http://swift.org/CONTRIBUTORS.txt for Swift project authors
9-
*/
9+
*/
1010

1111
import Basics
1212
import Foundation
@@ -148,7 +148,7 @@ extension PackageReference: CustomStringConvertible {
148148

149149
extension PackageReference.Kind: Encodable {
150150
private enum CodingKeys: String, CodingKey {
151-
case root, fileSystem, localSourceControl, remoteSourceControl,registry
151+
case root, fileSystem, localSourceControl, remoteSourceControl, registry
152152
}
153153

154154
public func encode(to encoder: Encoder) throws {

Sources/Workspace/SourceControlPackageContainer.swift

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ internal final class SourceControlPackageContainer: PackageContainer, CustomStri
7171
/// valid or not.
7272
internal var validToolsVersionsCache = ThreadSafeKeyValueStore<Version, Bool>()
7373

74-
public init(
74+
init(
7575
package: PackageReference,
7676
identityResolver: IdentityResolver,
7777
repositorySpecifier: RepositorySpecifier,
@@ -379,16 +379,3 @@ fileprivate extension Git {
379379
}
380380
}
381381
}
382-
383-
fileprivate extension PackageReference {
384-
func makeRepositorySpecifier() throws -> RepositorySpecifier {
385-
switch self.kind {
386-
case .localSourceControl(let path):
387-
return .init(path: path)
388-
case .remoteSourceControl(let url):
389-
return .init(url: url)
390-
default:
391-
throw StringError("invalid dependency kind \(self.kind)")
392-
}
393-
}
394-
}

Sources/Workspace/Workspace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3045,7 +3045,7 @@ fileprivate extension DiagnosticsEngine {
30453045
}
30463046
}
30473047

3048-
fileprivate extension PackageReference {
3048+
internal extension PackageReference {
30493049
func makeRepositorySpecifier() throws -> RepositorySpecifier {
30503050
switch self.kind {
30513051
case .localSourceControl(let path):

0 commit comments

Comments
 (0)