mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Remove dead code
This commit is contained in:
1 parent
d9cf760a25
commit
8affc8abe4
2 files changed
+3
-2
No files matched your search
@@ -10,6 +10,7 @@ public struct SQLGenerationContext {
|
||||
private var qualifierNeeded: Bool
|
||||
|
||||
/// Used for SQLExpression -> SQLExpressionLiteral conversion
|
||||
/// and SQLInterpolation
|
||||
static func literalGenerationContext(withArguments: Bool) -> SQLGenerationContext {
|
||||
return SQLGenerationContext(
|
||||
arguments: withArguments ? [] : nil,
|
||||
@@ -26,7 +27,7 @@ public struct SQLGenerationContext {
|
||||
}
|
||||
|
||||
/// Used for TableRecord.selectionSQL
|
||||
static func recordSelectionGenerationContext(alias: TableAlias) -> SQLGenerationContext {
|
||||
static func recordSelectionGenerationContext() -> SQLGenerationContext {
|
||||
return SQLGenerationContext(
|
||||
arguments: nil,
|
||||
resolvedNames: [:],
|
||||
|
||||
@@ -122,7 +122,7 @@ extension TableRecord {
|
||||
public static func selectionSQL(alias: String? = nil) -> String {
|
||||
let alias = TableAlias(tableName: databaseTableName, userName: alias)
|
||||
let selection = databaseSelection.map { $0.qualifiedSelectable(with: alias) }
|
||||
var context = SQLGenerationContext.recordSelectionGenerationContext(alias: alias)
|
||||
var context = SQLGenerationContext.recordSelectionGenerationContext()
|
||||
return selection
|
||||
.map { $0.resultColumnSQL(&context) }
|
||||
.joined(separator: ", ")
|
||||
|
||||
Reference in new issue
Block a user