Skip to content

Commit 14b24ce

Browse files
committed
refactor: 불필요 == 연산자 제거
1 parent 766d862 commit 14b24ce

2 files changed

Lines changed: 1 addition & 20 deletions

File tree

Application/DevLogDomain/Sources/Entity/TodoCursor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Foundation
99

10-
public struct TodoCursor {
10+
public struct TodoCursor: Equatable {
1111
public let primarySortDate: Date?
1212
public let secondarySortDate: Date?
1313
public let documentID: String

Application/DevLogPresentation/Sources/Home/List/TodoListFeature.swift

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,6 @@ struct TodoListFeature {
4747
if query.completionFilter != .all { count += 1 }
4848
return count
4949
}
50-
51-
static func == (lhs: Self, rhs: Self) -> Bool {
52-
lhs.category == rhs.category &&
53-
lhs.todos == rhs.todos &&
54-
lhs.searchText == rhs.searchText &&
55-
lhs.searchResults == rhs.searchResults &&
56-
lhs.alert == rhs.alert &&
57-
lhs.fullScreenCover == rhs.fullScreenCover &&
58-
lhs.isSearching == rhs.isSearching &&
59-
lhs.showAllSearchResults == rhs.showAllSearchResults &&
60-
lhs.query == rhs.query &&
61-
lhs.hasMore == rhs.hasMore &&
62-
lhs.loading == rhs.loading &&
63-
lhs.undoTodoId == rhs.undoTodoId &&
64-
lhs.deleteToastTodoId == rhs.deleteToastTodoId &&
65-
lhs.nextCursor?.primarySortDate == rhs.nextCursor?.primarySortDate &&
66-
lhs.nextCursor?.secondarySortDate == rhs.nextCursor?.secondarySortDate &&
67-
lhs.nextCursor?.documentID == rhs.nextCursor?.documentID
68-
}
6950
}
7051

7152
@ObservableState

0 commit comments

Comments
 (0)