Remove declarations for QListData functions removed by 36c29ab
This commit removed the function implementations, but not the declarations. This removes QListData::append2(T) but moves the optimized QListData::append2(T) implementation to QListData::append(T) Change-Id: I39b6dea31420a7cefe079b94a91a96eb16000d2a Reviewed-on: http://codereview.qt.nokia.com/4062 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>bb10
parent
35bd983e0d
commit
80559d6cd3
|
|
@ -181,7 +181,7 @@ void **QListData::append()
|
|||
}
|
||||
|
||||
// ensures that enough space is available to append the list
|
||||
void **QListData::append2(const QListData& l)
|
||||
void **QListData::append(const QListData& l)
|
||||
{
|
||||
return append(l.d->end - l.d->begin);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,9 +79,6 @@ struct Q_CORE_EXPORT QListData {
|
|||
|
||||
Data *detach(int alloc);
|
||||
Data *detach_grow(int *i, int n);
|
||||
Data *detach(); // remove in 5.0
|
||||
Data *detach2(); // remove in 5.0
|
||||
Data *detach3(); // remove in 5.0
|
||||
void realloc(int alloc);
|
||||
static Data shared_null;
|
||||
Data *d;
|
||||
|
|
@ -89,7 +86,6 @@ struct Q_CORE_EXPORT QListData {
|
|||
void **append(int n);
|
||||
void **append();
|
||||
void **append(const QListData &l);
|
||||
void **append2(const QListData &l); // remove in 5.0
|
||||
void **prepend();
|
||||
void **insert(int i);
|
||||
void remove(int i);
|
||||
|
|
@ -802,7 +798,7 @@ Q_OUTOFLINE_TEMPLATE QList<T> &QList<T>::operator+=(const QList<T> &l)
|
|||
} else {
|
||||
Node *n = (d->ref != 1)
|
||||
? detach_helper_grow(INT_MAX, l.size())
|
||||
: reinterpret_cast<Node *>(p.append2(l.p));
|
||||
: reinterpret_cast<Node *>(p.append(l.p));
|
||||
QT_TRY {
|
||||
node_copy(n, reinterpret_cast<Node *>(p.end()),
|
||||
reinterpret_cast<Node *>(l.p.begin()));
|
||||
|
|
|
|||
Loading…
Reference in New Issue