Skip to content

Commit

Permalink
remove rest of path properties
Browse files Browse the repository at this point in the history
  • Loading branch information
yonaskolb committed Jul 23, 2017
1 parent 8bb995e commit ed4c567
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Sources/xcodeproj/XCWorkspace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import xcodeprojprotocols

/// Model that represents a Xcode workspace.
public struct XCWorkspace {

/// Workspace path
public let path: Path

/// Workspace data
public let data: XCWorkspace.Data
Expand All @@ -24,7 +21,6 @@ public struct XCWorkspace {
if !fileManager.fileExists(atPath: path.string) {
throw XCWorkspaceError.notFound(path: path)
}
self.path = path
let xcworkspaceDataPaths = path.glob("*.xcworkspacedata")
if xcworkspaceDataPaths.count == 0 {
throw XCWorkspaceError.xcworkspaceDataNotFound(path: path)
Expand All @@ -35,10 +31,8 @@ public struct XCWorkspace {
/// Initializes the workspace with its properties.
///
/// - Parameters:
/// - path: path where the workspace is.
/// - data: workspace data.
public init(path: Path, data: XCWorkspace.Data) {
self.path = path
public init(data: XCWorkspace.Data) {
self.data = data
}

Expand All @@ -64,7 +58,7 @@ extension XCWorkspace: Writable {
extension XCWorkspace: Equatable {

public static func == (lhs: XCWorkspace, rhs: XCWorkspace) -> Bool {
return lhs.path == rhs.path && rhs.data == rhs.data
return rhs.data == rhs.data
}

}
Expand Down

0 comments on commit ed4c567

Please sign in to comment.