Skip to content

Commit 8912199

Browse files
committed
Removed parts about IdentifiableValue model conversion.
1 parent acbf74b commit 8912199

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

Sources/DataSources+Rx/RxCollectionViewSectionedAnimatedDataSource.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ public class RxCollectionViewSectionedAnimatedDataSource<S: AnimatableSectionMod
1717
: CollectionViewSectionedDataSource<S>
1818
, RxCollectionViewDataSourceType {
1919
public typealias Element = [Changeset<S>]
20-
public typealias ItemType = S.Item.Identity
21-
2220
public var animationConfiguration: AnimationConfiguration? = nil
2321

2422
// For some inexplicable reason, when doing animated updates first time
@@ -44,13 +42,4 @@ public class RxCollectionViewSectionedAnimatedDataSource<S: AnimatableSectionMod
4442

4543
}.on(observedEvent)
4644
}
47-
48-
override public func modelAtIndexPath(indexPath: NSIndexPath) throws -> Any {
49-
let model = itemAtIndexPath(indexPath)
50-
if let m = model as? IdentitifiableValue<ItemType> {
51-
return m.value
52-
} else {
53-
return model
54-
}
55-
}
5645
}

Sources/DataSources+Rx/RxTableViewSectionedAnimatedDataSource.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ public class RxTableViewSectionedAnimatedDataSource<S: AnimatableSectionModelTyp
1818
, RxTableViewDataSourceType {
1919

2020
public typealias Element = [Changeset<S>]
21-
public typealias ItemType = S.Item.Identity
22-
2321
public var animationConfiguration: AnimationConfiguration? = nil
2422

2523
public override init() {
@@ -39,13 +37,4 @@ public class RxTableViewSectionedAnimatedDataSource<S: AnimatableSectionModelTyp
3937
}
4038
}.on(observedEvent)
4139
}
42-
43-
override public func modelAtIndexPath(indexPath: NSIndexPath) throws -> Any {
44-
let model = itemAtIndexPath(indexPath)
45-
if let m = model as? IdentitifiableValue<ItemType> {
46-
return m.value
47-
} else {
48-
return model
49-
}
50-
}
5140
}

0 commit comments

Comments
 (0)