diff --git a/src/plugins/qmldesigner/components/itemlibrary/itemlibrarysectionmodel.cpp b/src/plugins/qmldesigner/components/itemlibrary/itemlibrarysectionmodel.cpp index c18a486fda8..5a60dd1eb78 100644 --- a/src/plugins/qmldesigner/components/itemlibrary/itemlibrarysectionmodel.cpp +++ b/src/plugins/qmldesigner/components/itemlibrary/itemlibrarysectionmodel.cpp @@ -39,7 +39,6 @@ ItemLibrarySectionModel::ItemLibrarySectionModel(QObject *parent) : ItemLibrarySectionModel::~ItemLibrarySectionModel() { - clearItems(); } int ItemLibrarySectionModel::rowCount(const QModelIndex &) const @@ -73,12 +72,6 @@ QHash ItemLibrarySectionModel::roleNames() const return m_roleNames; } -void ItemLibrarySectionModel::clearItems() -{ - beginResetModel(); - endResetModel(); -} - void ItemLibrarySectionModel::addItem(ItemLibraryItem *element) { m_itemList.append(element); diff --git a/src/plugins/qmldesigner/components/itemlibrary/itemlibrarysectionmodel.h b/src/plugins/qmldesigner/components/itemlibrary/itemlibrarysectionmodel.h index 6d543b5afae..6e1771a52f0 100644 --- a/src/plugins/qmldesigner/components/itemlibrary/itemlibrarysectionmodel.h +++ b/src/plugins/qmldesigner/components/itemlibrary/itemlibrarysectionmodel.h @@ -45,8 +45,6 @@ public: QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; QHash roleNames() const override; - void clearItems(); - void addItem(ItemLibraryItem *item); const QList &items() const;