Skip to content

Commit

Permalink
Removed some functions as they are implied by the Comparable protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Hout committed Oct 19, 2015
1 parent a275604 commit 8081206
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
10 changes: 9 additions & 1 deletion SwiftDate.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
CCCADC6E1BB8909B00B905DD = {
1FF867221BD5389F006B0E02 /* Frameworks */ = {
isa = PBXGroup;
children = (
1FF8671B1BD5334B006B0E02 /* Nimble.framework */,
Expand All @@ -103,6 +103,14 @@
1FF867181BD5333F006B0E02 /* Quick.framework */,
1FF867131BD5332E006B0E02 /* Nimble.framework */,
1FF867141BD5332E006B0E02 /* Quick.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
CCCADC6E1BB8909B00B905DD = {
isa = PBXGroup;
children = (
1FF867221BD5389F006B0E02 /* Frameworks */,
CCCADC7A1BB8909B00B905DD /* SwiftDate */,
CCCADC861BB8909B00B905DD /* SwiftDateTests */,
CCCADC791BB8909B00B905DD /* Products */,
Expand Down
12 changes: 0 additions & 12 deletions SwiftDate/SwiftDate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1192,10 +1192,6 @@ public func == (left: NSDate, right: NSDate) -> Bool {
return (left.compare(right) == NSComparisonResult.OrderedSame)
}

public func != (left: NSDate, right: NSDate) -> Bool {
return !(left == right)
}

public func < (left: NSDate, right: NSDate) -> Bool {
return (left.compare(right) == NSComparisonResult.OrderedAscending)
}
Expand All @@ -1204,14 +1200,6 @@ public func > (left: NSDate, right: NSDate) -> Bool {
return (left.compare(right) == NSComparisonResult.OrderedDescending)
}

public func <= (left: NSDate, right: NSDate) -> Bool {
return !(left > right)
}

public func >= (left: NSDate, right: NSDate) -> Bool {
return !(left < right)
}

//MARK: ARITHMETIC OPERATIONS WITH DATES (-,-=,+,+=)

public func - (left : NSDate, right: NSTimeInterval) -> NSDate {
Expand Down

0 comments on commit 8081206

Please sign in to comment.