Skip to content

Commit f8174ff

Browse files
authored
Merge pull request #3518 from apple/stdlib-remove-redundant-entry-points
2 parents 5868f9c + 49164c9 commit f8174ff

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

stdlib/public/core/ExistentialCollection.swift.gyb

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -644,15 +644,7 @@ internal protocol _AnyIndexBox : class {
644644

645645
func _isEqual(to rhs: _AnyIndexBox) -> Bool
646646

647-
func _isNotEqual(to rhs: _AnyIndexBox) -> Bool
648-
649647
func _isLess(than rhs: _AnyIndexBox) -> Bool
650-
651-
func _isLessOrEqual(to rhs: _AnyIndexBox) -> Bool
652-
653-
func _isGreater(than rhs: _AnyIndexBox) -> Bool
654-
655-
func _isGreaterOrEqual(to rhs: _AnyIndexBox) -> Bool
656648
}
657649

658650
internal final class _IndexBox<
@@ -680,25 +672,9 @@ internal final class _IndexBox<
680672
return _base == _unsafeUnbox(rhs)
681673
}
682674

683-
internal func _isNotEqual(to rhs: _AnyIndexBox) -> Bool {
684-
return _base != _unsafeUnbox(rhs)
685-
}
686-
687675
internal func _isLess(than rhs: _AnyIndexBox) -> Bool {
688676
return _base < _unsafeUnbox(rhs)
689677
}
690-
691-
internal func _isLessOrEqual(to rhs: _AnyIndexBox) -> Bool {
692-
return _base <= _unsafeUnbox(rhs)
693-
}
694-
695-
internal func _isGreater(than rhs: _AnyIndexBox) -> Bool {
696-
return _base > _unsafeUnbox(rhs)
697-
}
698-
699-
internal func _isGreaterOrEqual(to rhs: _AnyIndexBox) -> Bool {
700-
return _base >= _unsafeUnbox(rhs)
701-
}
702678
}
703679

704680
/// A wrapper over an underlying index that hides
@@ -731,31 +707,11 @@ public func == (lhs: AnyIndex, rhs: AnyIndex) -> Bool {
731707
return lhs._box._isEqual(to: rhs._box)
732708
}
733709

734-
public func != (lhs: AnyIndex, rhs: AnyIndex) -> Bool {
735-
_precondition(lhs._typeID == rhs._typeID, "base index types differ")
736-
return lhs._box._isNotEqual(to: rhs._box)
737-
}
738-
739710
public func < (lhs: AnyIndex, rhs: AnyIndex) -> Bool {
740711
_precondition(lhs._typeID == rhs._typeID, "base index types differ")
741712
return lhs._box._isLess(than: rhs._box)
742713
}
743714

744-
public func <= (lhs: AnyIndex, rhs: AnyIndex) -> Bool {
745-
_precondition(lhs._typeID == rhs._typeID, "base index types differ")
746-
return lhs._box._isLessOrEqual(to: rhs._box)
747-
}
748-
749-
public func > (lhs: AnyIndex, rhs: AnyIndex) -> Bool {
750-
_precondition(lhs._typeID == rhs._typeID, "base index types differ")
751-
return lhs._box._isGreater(than: rhs._box)
752-
}
753-
754-
public func >= (lhs: AnyIndex, rhs: AnyIndex) -> Bool {
755-
_precondition(lhs._typeID == rhs._typeID, "base index types differ")
756-
return lhs._box._isGreaterOrEqual(to: rhs._box)
757-
}
758-
759715
//===--- Collections ------------------------------------------------------===//
760716
//===----------------------------------------------------------------------===//
761717

0 commit comments

Comments
 (0)