From a623dfb1334771bd1469c1fb1c0231602c9b4b94 Mon Sep 17 00:00:00 2001 From: Felix Kauselmann Date: Wed, 23 Jun 2021 11:33:58 +0200 Subject: [PATCH] Database Models: Remove obsolete signals Folder model and comic model contain two signal relais which do not serve any obvious purpose. Remove them. --- YACReaderLibrary/db/comic_model.cpp | 2 -- YACReaderLibrary/db/comic_model.h | 2 -- YACReaderLibrary/db/folder_model.cpp | 2 -- YACReaderLibrary/db/folder_model.h | 4 ---- 4 files changed, 10 deletions(-) diff --git a/YACReaderLibrary/db/comic_model.cpp b/YACReaderLibrary/db/comic_model.cpp index 0a925ff6..c15d09d2 100644 --- a/YACReaderLibrary/db/comic_model.cpp +++ b/YACReaderLibrary/db/comic_model.cpp @@ -18,8 +18,6 @@ ComicModel::ComicModel(QObject *parent) : QAbstractItemModel(parent) { - connect(this, SIGNAL(beforeReset()), this, SIGNAL(modelAboutToBeReset())); - connect(this, SIGNAL(reset()), this, SIGNAL(modelReset())); } ComicModel::ComicModel(QSqlQuery &sqlquery, QObject *parent) diff --git a/YACReaderLibrary/db/comic_model.h b/YACReaderLibrary/db/comic_model.h index 55063f3e..fe628311 100644 --- a/YACReaderLibrary/db/comic_model.h +++ b/YACReaderLibrary/db/comic_model.h @@ -160,8 +160,6 @@ private: qulonglong sourceId; signals: - void beforeReset(); - void reset(); void isEmpty(); void searchNumResults(int); void resortedIndexes(QList); diff --git a/YACReaderLibrary/db/folder_model.cpp b/YACReaderLibrary/db/folder_model.cpp index 35271125..6b04360c 100644 --- a/YACReaderLibrary/db/folder_model.cpp +++ b/YACReaderLibrary/db/folder_model.cpp @@ -56,8 +56,6 @@ void drawMacOSXFinishedFolderIcon() FolderModel::FolderModel(QObject *parent) : QAbstractItemModel(parent), rootItem(0) { - connect(this, SIGNAL(beforeReset()), this, SIGNAL(modelAboutToBeReset())); - connect(this, SIGNAL(reset()), this, SIGNAL(modelReset())); } FolderModel::FolderModel(QSqlQuery &sqlquery, QObject *parent) diff --git a/YACReaderLibrary/db/folder_model.h b/YACReaderLibrary/db/folder_model.h index 8eb19af1..419f9df8 100644 --- a/YACReaderLibrary/db/folder_model.h +++ b/YACReaderLibrary/db/folder_model.h @@ -102,10 +102,6 @@ private: QMap items; //relación entre folders QString _databasePath; - -signals: - void beforeReset(); - void reset(); }; #endif