SQL/QSqlIndex: remove unused private function createField()

This function was forgotten when the Qt3 support was removed during
initial Qt5 porting (f306d18fe6).

Pick-to: 6.7
Change-Id: I83a0be0db7e81bd9d4f84683a013e1d4faab2dd8
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
bb10
Christian Ehrlicher 2024-02-04 10:34:32 +01:00
parent 463037d9bd
commit 5a7d41667d
2 changed files with 0 additions and 19 deletions

View File

@ -149,24 +149,6 @@ void QSqlIndex::setDescending(int i, bool desc)
sorts[i] = desc;
}
/*! \internal
Creates a string representing the field number \a i using prefix \a
prefix. If \a verbose is true, ASC or DESC is included in the field
description if the field is sorted in ASCending or DESCending order.
*/
QString QSqlIndex::createField(int i, const QString& prefix, bool verbose) const
{
QString f;
if (!prefix.isEmpty())
f += prefix + u'.';
f += field(i).name();
if (verbose)
f += u' ' + QString((isDescending(i) ? "DESC"_L1 : "ASC"_L1));
return f;
}
/*!
\property QSqlIndex::cursorName
\since 6.8

View File

@ -47,7 +47,6 @@ public:
void setDescending(int i, bool desc);
private:
QString createField(int i, const QString& prefix, bool verbose) const;
// ### Qt7: move to d-ptr
QString cursor;
QString nm;