Remove unused Bindings initializer

This commit is contained in:
Gwendal Roué committed 2015-07-17 07:53:22 +02:00
1 parent 5e14604945
commit 29ef1b70d5
2 files changed
+1 -15

No files matched your search

-14
View File
@@ -66,20 +66,6 @@ public struct Bindings {
impl = BindingsArrayImpl(values: Array(sequence))
}
/**
Initializes bindings from a sequence of values.
let values: [String] = ["foo", "bar", "baz"]
db.execute("INSERT ... (?,?,?)", bindings: Bindings(values))
- parameter sequence: A sequence of values that adopt the
DatabaseValueConvertible protocol.
- returns: A Bindings.
*/
public init<Sequence: SequenceType where Sequence.Generator.Element == DatabaseValueConvertible>(_ sequence: Sequence) {
impl = BindingsArrayImpl(values: sequence.map { $0 })
}
/**
Initializes bindings from an NSArray.
+1 -1
View File
@@ -534,7 +534,7 @@ public class RowModel {
// Delete
let deleteStatement = try DataMapper.deleteStatement(db, tableName: databaseTable.name, conditionColumns: Array(primaryKeyDictionary.keys))
let bindings = Bindings(Array(primaryKeyDictionary.values))
let bindings = Bindings(primaryKeyDictionary.values)
try deleteStatement.execute(bindings: bindings)
}