From c7caac3459461f93fbae544a501fa491f84e5ce4 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 5 Oct 2012 12:44:41 +0200 Subject: Code cleanup on MappingTreeModel Remove unused functions, members and queries. --- mappingtreemodel.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'mappingtreemodel.h') diff --git a/mappingtreemodel.h b/mappingtreemodel.h index 1aebbef..b2fa9eb 100644 --- a/mappingtreemodel.h +++ b/mappingtreemodel.h @@ -28,10 +28,8 @@ class MappingTreeModel : public SmTreeModel { ~MappingTreeModel(); //model type convenience functions - int type() const { return mType; } QStringList mappingTypeNames() const; int mappingTypeIdFromName(const QVariant &name) const; - QString mappingTypeNameFromId(int id) const; //static convenience funcs //the caller is responsible for deleting the result! @@ -40,7 +38,6 @@ class MappingTreeModel : public SmTreeModel { //data QVariant data(const QModelIndex &index, int role) const; QList childList(const QVariant &value, int column = 0) const; - QList mappingsForFile(const QVariant &fileId) const; QStringList path(QModelIndex &idx) const; QModelIndex indexFromPath(const QString &path, int column = 0) const; bool setData(const QModelIndex &index, const QVariant &value, int role); @@ -49,7 +46,6 @@ class MappingTreeModel : public SmTreeModel { bool deleteMappingType(int typeId); bool addChild(const QVariant &name, const QModelIndex &parent); bool deleteChild(const QModelIndex &idx); - int childCount(const QModelIndex &idx) const; MappingData mappingDataFromIndex(QModelIndex &idx) const; QStringList paths() const; const QString &forbidden() const { return mForbidden; } @@ -76,7 +72,6 @@ class MappingTreeModel : public SmTreeModel { QList getChildListRecursive(SmTreeItem *item, int column) const; QString basePath(SmTreeItem *item) const; int lowerBound(SmTreeItem *item, const QVariant &value, int column = 0) const; - QList mappingData(SmTreeItem *item); QSqlDatabase mDb; QSqlQuery *mTypesQ; QString mSParentsQ; @@ -87,10 +82,8 @@ class MappingTreeModel : public SmTreeModel { QSqlQuery *mAddChildQ; QSqlQuery *mSelectChildQ; QSqlQuery *mAddParentQ; - QSqlQuery *mDeleteChildQ; QSqlQuery *mUpdateParentQ; QSqlQuery *mDeleteMappingParentQ; - QSqlQuery *mMappingsForFileIdQ; QSqlQuery *mMappingsQ; QList mMappingTypes; QMap mMappings; -- cgit v1.2.3-70-g09d2