mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Remove dead code
This commit is contained in:
1 parent
1238843a44
commit
6d14f792e6
1 file changed
-5
@@ -699,7 +699,6 @@ extension SQLQualifiedRelation: Refinable { }
|
||||
/// A "qualified" source, where all tables are identified with a table alias.
|
||||
private enum SQLQualifiedSource {
|
||||
case table(tableName: String, alias: TableAlias)
|
||||
case commonTableExpression(TableAlias)
|
||||
indirect case subquery(SQLQueryGenerator)
|
||||
|
||||
/// Nil for subquery sources.
|
||||
@@ -716,8 +715,6 @@ private enum SQLQualifiedSource {
|
||||
switch self {
|
||||
case let .table(_, alias):
|
||||
return alias
|
||||
case let .commonTableExpression(alias):
|
||||
return alias
|
||||
case .subquery:
|
||||
return nil
|
||||
}
|
||||
@@ -741,8 +738,6 @@ private enum SQLQualifiedSource {
|
||||
} else {
|
||||
return "\(tableName.quotedDatabaseIdentifier)"
|
||||
}
|
||||
case let .commonTableExpression(alias):
|
||||
return context.resolvedName(for: alias).quotedDatabaseIdentifier
|
||||
case let .subquery(generator):
|
||||
let sql = try generator.requestSQL(context)
|
||||
return "(\(sql))"
|
||||
|
||||
Reference in new issue
Block a user