From 10b0d39e0564c36e334b0410ef9f663f4ffdc8cd Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Sun, 7 Aug 2016 16:04:47 +0200 Subject: [PATCH] Fixes warnings. --- .../iOS/Proxies/RxTableViewDataSourceProxy.swift | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift b/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift index 558008ea..c7df9a57 100644 --- a/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift +++ b/RxCocoa/iOS/Proxies/RxTableViewDataSourceProxy.swift @@ -20,12 +20,8 @@ class TableViewDataSourceNotSet : NSObject , UITableViewDataSource { - func numberOfSectionsInTableView(tableView: UITableView) -> Int { - return 0 - } - func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - rxAbstractMethodWithMessage(dataSourceNotSet) + return 0 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { @@ -60,13 +56,6 @@ public class RxTableViewDataSourceProxy // MARK: delegate - /** - Required delegate method implementation. - */ - public func numberOfSectionsInTableView(tableView: UITableView) -> Int { - return (_requiredMethodsDataSource ?? tableViewDataSourceNotSet).numberOfSections?(in: tableView) ?? 0 - } - /** Required delegate method implementation. */