diff --git a/libkcups/PPDModel.h b/libkcups/PPDModel.h --- a/libkcups/PPDModel.h +++ b/libkcups/PPDModel.h @@ -45,8 +45,6 @@ Qt::ItemFlags flags(const QModelIndex &index) const override; - void clear(); - private: QStandardItem* createPPDItem(const QVariantHash &ppd, bool recommended); QStandardItem* findCreateMake(const QString &make); diff --git a/libkcups/PPDModel.cpp b/libkcups/PPDModel.cpp --- a/libkcups/PPDModel.cpp +++ b/libkcups/PPDModel.cpp @@ -82,12 +82,6 @@ return Qt::ItemIsSelectable | Qt::ItemIsEnabled; } -void PPDModel::clear() -{ - // Remove all rows from the model - removeRows(0, rowCount()); -} - QStandardItem *PPDModel::createPPDItem(const QVariantHash &ppd, bool recommended) { auto ret = new QStandardItem;