Rename method name to removeListItem

This commit is contained in:
Khan, Arshad 2019-10-25 23:07:42 +05:30
parent 45b0b01646
commit 8ea52a21f7

View File

@ -164,7 +164,7 @@ open class MoleculeListTemplate: ThreeLayerTableViewController {
self.view.layoutIfNeeded()
}
public func removeListItemWhichHas(_ molecule: [AnyHashable : Any], animation: UITableView.RowAnimation) {
public func removeListItem(_ molecule: [AnyHashable : Any], animation: UITableView.RowAnimation) {
var indexPaths: [IndexPath] = []
if let removeIndex = moleculesInfo?.firstIndex(where: { (moleculeInfo) -> Bool in
return NSDictionary(dictionary: molecule).isEqual(to: moleculeInfo.molecule["molecule"] as? [AnyHashable : Any] ?? [:])