Skip to content

Commit d03208b

Browse files
committed
Remove unused code
1 parent a4132a0 commit d03208b

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

GRDB/QueryInterface/SQL/SQLSelection.swift

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -126,41 +126,6 @@ extension SQLSelection {
126126
}
127127
}
128128

129-
/// Returns the SQL that feeds the argument of the `COUNT` function.
130-
///
131-
/// For example:
132-
///
133-
/// COUNT(*)
134-
/// COUNT(id)
135-
/// ^---- countedSQL
136-
///
137-
/// - parameter context: An SQL generation context which accepts
138-
/// statement arguments.
139-
func countedSQL(_ context: SQLGenerationContext) throws -> String {
140-
switch impl {
141-
case .allColumns:
142-
return "*"
143-
144-
case let .qualifiedAllColumns(alias):
145-
if context.qualifier(for: alias) != nil {
146-
// SELECT COUNT(t.*) is invalid SQL
147-
fatalError("Not implemented, or invalid query")
148-
}
149-
return "*"
150-
151-
case let .expression(expression),
152-
let .aliasedExpression(expression, _):
153-
return try expression.sql(context)
154-
155-
case .literal:
156-
fatalError("""
157-
Selection literals can't be counted. \
158-
To resolve this error, select one or several literal expressions instead. \
159-
See SQL.sqlExpression.
160-
""")
161-
}
162-
}
163-
164129
/// Returns the SQL that feeds the selection of a `SELECT` statement.
165130
///
166131
/// For example:

0 commit comments

Comments
 (0)