Skip to content

Commit fdf2df1

Browse files
committed
Remove Bad Equatable Conformance
1 parent 579cd0a commit fdf2df1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Sources/CodeEditTextView/TextLineStorage/TextLineStorage+Structs.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99

1010
extension TextLineStorage where Data: Identifiable {
11-
public struct TextLinePosition: Equatable {
11+
public struct TextLinePosition {
1212
init(data: Data, range: NSRange, yPos: CGFloat, height: CGFloat, index: Int) {
1313
self.data = data
1414
self.range = range
@@ -35,14 +35,6 @@ extension TextLineStorage where Data: Identifiable {
3535
public let height: CGFloat
3636
/// The index of the position.
3737
public let index: Int
38-
39-
public static func == (_ lhs: TextLinePosition, _ rhs: TextLinePosition) -> Bool {
40-
lhs.data.id == rhs.data.id &&
41-
lhs.range == rhs.range &&
42-
lhs.yPos == rhs.yPos &&
43-
lhs.height == rhs.height &&
44-
lhs.index == rhs.index
45-
}
4638
}
4739

4840
struct NodePosition {

0 commit comments

Comments
 (0)