Delete a few unused lines of code.
This commit is contained in:
parent
72fa80956a
commit
8422122816
|
@ -109,10 +109,6 @@ private extension SearchTable {
|
||||||
|
|
||||||
func insert(_ article: ArticleSearchInfo, _ database: FMDatabase) -> Int {
|
func insert(_ article: ArticleSearchInfo, _ database: FMDatabase) -> Int {
|
||||||
let rowDictionary: DatabaseDictionary = [DatabaseKey.body: article.bodyForIndex, DatabaseKey.title: article.title ?? ""]
|
let rowDictionary: DatabaseDictionary = [DatabaseKey.body: article.bodyForIndex, DatabaseKey.title: article.title ?? ""]
|
||||||
// rowDictionary[DatabaseKey.title] = article.title ?? ""
|
|
||||||
// rowDictionary[DatabaseKey.body] = article.bodyForIndex
|
|
||||||
// rowDictionary.setObject(article.title ?? "", forKey: DatabaseKey.title as NSString)
|
|
||||||
// rowDictionary.setObject(article.bodyForIndex, forKey: DatabaseKey.body as NSString)
|
|
||||||
insertRow(rowDictionary, insertType: .normal, in: database)
|
insertRow(rowDictionary, insertType: .normal, in: database)
|
||||||
return Int(database.lastInsertRowId())
|
return Int(database.lastInsertRowId())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue