 import KeyboardAdjuster
 import LionheartTableViewCells
 
-public protocol QuickTableViewRowLike {
-    var title: String? { get }
-    var detail: String? { get }
-    var type: UITableViewCellIdentifiable.Type { get }
-}
-
-public protocol QuickTableViewRowLikeExtended: QuickTableViewRowLike {
-    associatedtype C
-    func prepareCell(cell: C) -> C
-    func dequeueReusableCellWithIdentifier(tableView: UITableView, forIndexPath indexPath: NSIndexPath) -> C
-}
-
-public enum QuickTableViewRow: QuickTableViewRowLikeExtended {
+public enum QuickTableViewRow {
     public typealias C = UITableViewCell
     public typealias QuickTableViewHandler = UIViewController -> Void
 


        case .RowWithSetup(let row, _):
            return row.detail
        }
    }


    }

    public func prepareCell(cell: C) -> C {
        cell.textLabel?.text = title
        cell.detailTextLabel?.text = detail

        switch self {
        case .Custom(_, let callback):
            return callback(cell)

        case .RowWithHandler(let row, _):
            return row.prepareCell(cell)

        case .RowWithHandler2(let row, _):
            return row.prepareCell(cell)

        case .RowWithSetup(let row, let callback):
            return row.prepareCell(callback(cell))

        default:
            break
        }
        return cell
    }
