File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -63,14 +63,6 @@ public protocol RangeProtocol : Equatable {
63
63
/// upper bound.
64
64
@warn_unused_result
65
65
func contains( _ value: Bound ) -> Bool
66
-
67
- /// Returns `true` iff `self` and `other` contain a value in common.
68
- ///
69
- /// Any type of range contains every value `x` where
70
- /// `lowerBound < x < upperBound`. `RangeProtocol` makes no requirement as
71
- /// to whether individual range types must contain either their lower or
72
- /// upper bound.
73
- func overlaps( _ other: Self ) -> Bool
74
66
75
67
/// Returns `true` iff `self.contains(x)` is `false` for all values of `x`.
76
68
var isEmpty : Bool { get }
@@ -90,12 +82,6 @@ public protocol RangeProtocol : Equatable {
90
82
/// Depending on the concrete type of the range, `upperBound` may or may not
91
83
/// be contained in the range.
92
84
var upperBound : Bound { get }
93
-
94
- /// Returns `self` clamped to `limits`.
95
- ///
96
- /// The bounds of the result, even if it is empty, are always
97
- /// limited to the bounds of `limits`.
98
- func clamped( to limits: Self ) -> Self
99
85
}
100
86
101
87
extension RangeProtocol {
You can’t perform that action at this time.
0 commit comments