Skip to content

Commit 02d26f9

Browse files
committed
Remove the canEditRowAtIndexPathImplemented logic
1 parent dfe7346 commit 02d26f9

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Sources/DataSources/TableViewSectionedDataSource.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ public class _TableViewSectionedDataSource
5757
return _rx_tableView(tableView, titleForFooterInSection: section)
5858
}
5959

60-
public var canEditRowAtIndexPathImplemented: Bool {
61-
return false
62-
}
63-
6460
func _rx_tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
6561
return true
6662
}
@@ -100,13 +96,6 @@ public class _TableViewSectionedDataSource
10096
_rx_tableView(tableView, moveRowAtIndexPath: sourceIndexPath, toIndexPath: destinationIndexPath)
10197
}
10298

103-
override public func respondsToSelector(aSelector: Selector) -> Bool {
104-
if aSelector == #selector(UITableViewDataSource.tableView(_:canEditRowAtIndexPath:)) {
105-
return self.canEditRowAtIndexPathImplemented
106-
}
107-
108-
return super.respondsToSelector(aSelector)
109-
}
11099
}
111100

112101
public class RxTableViewSectionedDataSource<S: SectionModelType>
@@ -160,10 +149,6 @@ public class RxTableViewSectionedDataSource<S: SectionModelType>
160149
public var titleForFooterInSection: ((RxTableViewSectionedDataSource<S>, section: Int) -> String?)?
161150

162151
public var canEditRowAtIndexPath: ((RxTableViewSectionedDataSource<S>, indexPath: NSIndexPath) -> Bool)?
163-
override public var canEditRowAtIndexPathImplemented: Bool {
164-
let result = canEditRowAtIndexPath != nil
165-
return result
166-
}
167152
public var canMoveRowAtIndexPath: ((RxTableViewSectionedDataSource<S>, indexPath: NSIndexPath) -> Bool)?
168153

169154
public var sectionIndexTitles: ((RxTableViewSectionedDataSource<S>) -> [String]?)?

0 commit comments

Comments
 (0)