Skip to content

Commit 9fc634c

Browse files
committed
Removes redundant conformances.
1 parent 4e12c71 commit 9fc634c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

RxExample/RxDataSources/DataSources/AnimatableSectionModelType.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ import Foundation
1010

1111
public protocol AnimatableSectionModelType
1212
: SectionModelType
13-
, IdentifiableType {
14-
associatedtype Item : IdentifiableType, Equatable
15-
}
13+
, IdentifiableType where Item: IdentifiableType, Item: Equatable {
14+
15+
}

RxExample/RxDataSources/DataSources/IdentifiableValue.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public struct IdentifiableValue<Value: Hashable>
3030
}
3131
}
3232

33-
public func == <V: Hashable>(lhs: IdentifiableValue<V>, rhs: IdentifiableValue<V>) -> Bool {
33+
public func == <V>(lhs: IdentifiableValue<V>, rhs: IdentifiableValue<V>) -> Bool {
3434
return lhs.value == rhs.value
35-
}
35+
}

RxExample/RxDataSources/DataSources/UI+SectionedViewType.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ extension UICollectionView : SectionedViewType {
9191
self.reloadSections(indexSet(sections))
9292
}
9393

94-
public func performBatchUpdates<S: SectionModelType>(_ changes: Changeset<S>, animationConfiguration: AnimationConfiguration) {
94+
public func performBatchUpdates<S>(_ changes: Changeset<S>, animationConfiguration: AnimationConfiguration) {
9595
self.performBatchUpdates({ () -> Void in
9696
_performBatchUpdates(self, changes: changes, animationConfiguration: animationConfiguration)
9797
}, completion: { (completed: Bool) -> Void in
@@ -113,7 +113,7 @@ public protocol SectionedViewType {
113113
func performBatchUpdates<S>(_ changes: Changeset<S>, animationConfiguration: AnimationConfiguration)
114114
}
115115

116-
func _performBatchUpdates<V: SectionedViewType, S: SectionModelType>(_ view: V, changes: Changeset<S>, animationConfiguration:AnimationConfiguration) {
116+
func _performBatchUpdates<V: SectionedViewType, S>(_ view: V, changes: Changeset<S>, animationConfiguration:AnimationConfiguration) {
117117
typealias I = S.Item
118118

119119
view.deleteSections(changes.deletedSections, animationStyle: animationConfiguration.deleteAnimation)

RxExample/RxExample/Operators.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func nonMarkedText(_ textInput: UITextInput) -> String? {
3838
return (textInput.text(in: startRange) ?? "") + (textInput.text(in: endRange) ?? "")
3939
}
4040

41-
func <-> <Base: UITextInput>(textInput: TextInput<Base>, variable: Variable<String>) -> Disposable {
41+
func <-> <Base>(textInput: TextInput<Base>, variable: Variable<String>) -> Disposable {
4242
let bindToUIDisposable = variable.asObservable()
4343
.bind(to: textInput.text)
4444
let bindToVariable = textInput.text

0 commit comments

Comments
 (0)