Commit aa0769d3 by David Muzi

remove redundant extension on BUYOrder

parent 364d73f6
...@@ -95,20 +95,10 @@ extension OrdersViewController: UITableViewDataSource { ...@@ -95,20 +95,10 @@ extension OrdersViewController: UITableViewDataSource {
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! LineItemCell let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! LineItemCell
let lineItem = self.orders[indexPath.section].arrayOfLineItems[indexPath.row] let lineItem = self.orders[indexPath.section].lineItemsArray()[indexPath.row]
cell.setLineItem(lineItem) cell.setLineItem(lineItem)
return cell return cell
} }
} }
// ----------------------------------
// MARK: - BUYOrder -
//
extension BUYOrder {
var arrayOfLineItems: [BUYLineItem] {
return self.lineItems.array as! [BUYLineItem]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment