mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Remove unused Bindings initializer
This commit is contained in:
1 parent
5e14604945
commit
29ef1b70d5
2 files changed
+1
-15
No files matched your search
@@ -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
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user