From 194409abd6f810bd4179d9aa072b8b9ac32919c5 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Wed, 7 Feb 2024 13:34:54 -0500 Subject: [PATCH] Remove various undefined/unused functions --- src/browser/BrowserService.h | 1 - src/core/Group.h | 1 - src/core/HibpDownloader.h | 2 -- src/gui/entry/EditEntryWidget.h | 1 - src/gui/entry/EntryURLModel.h | 1 - tests/TestCsvParser.h | 2 -- 6 files changed, 8 deletions(-) diff --git a/src/browser/BrowserService.h b/src/browser/BrowserService.h index 7d9ac4fda..485b416bb 100644 --- a/src/browser/BrowserService.h +++ b/src/browser/BrowserService.h @@ -198,7 +198,6 @@ private: const bool omitWwwSubdomain = false); QString getDatabaseRootUuid(); QString getDatabaseRecycleBinUuid(); - bool checkLegacySettings(QSharedPointer db); void hideWindow() const; void raiseWindow(const bool force = false); void updateWindowState(); diff --git a/src/core/Group.h b/src/core/Group.h index 85a4317a3..510ecdc37 100644 --- a/src/core/Group.h +++ b/src/core/Group.h @@ -154,7 +154,6 @@ public: const QList& children() const; QList entries(); const QList& entries() const; - Entry* findEntryRecursive(const QString& text, EntryReferenceType referenceType, Group* group = nullptr); QList referencesRecursive(const Entry* entry) const; QList entriesRecursive(bool includeHistoryItems = false) const; QList groupsRecursive(bool includeSelf) const; diff --git a/src/core/HibpDownloader.h b/src/core/HibpDownloader.h index f8e66baf3..ccdc393ff 100644 --- a/src/core/HibpDownloader.h +++ b/src/core/HibpDownloader.h @@ -62,8 +62,6 @@ private slots: void fetchReadyRead(); private: - void fetchPassword(const QString& password); - QStringList m_pwdsToTry; // The list of remaining passwords to validate QHash> m_replies; }; diff --git a/src/gui/entry/EditEntryWidget.h b/src/gui/entry/EditEntryWidget.h index 734294837..0507b5dfb 100644 --- a/src/gui/entry/EditEntryWidget.h +++ b/src/gui/entry/EditEntryWidget.h @@ -152,7 +152,6 @@ private: void setupEntryUpdate(); void setupColorButton(bool foreground, const QColor& color); - bool passwordsEqual(); void setForms(Entry* entry, bool restore = false); QMenu* createPresetsMenu(); void updateEntryData(Entry* entry) const; diff --git a/src/gui/entry/EntryURLModel.h b/src/gui/entry/EntryURLModel.h index 2801f9ffe..8fd5ef119 100644 --- a/src/gui/entry/EntryURLModel.h +++ b/src/gui/entry/EntryURLModel.h @@ -46,7 +46,6 @@ public: explicit EntryURLModel(QObject* parent = nullptr); void setEntryAttributes(EntryAttributes* entryAttributes); - void insertRow(const QString& key, const QString& value); void setEntryUrl(const QString& entryUrl); bool setData(const QModelIndex& index, const QVariant& value, int role = Qt::EditRole) override; QVariant data(const QModelIndex& index, int role) const override; diff --git a/tests/TestCsvParser.h b/tests/TestCsvParser.h index dc4429dec..d367a077a 100644 --- a/tests/TestCsvParser.h +++ b/tests/TestCsvParser.h @@ -19,7 +19,6 @@ #ifndef KEEPASSX_TESTCSVPARSER_H #define KEEPASSX_TESTCSVPARSER_H -#include #include #include "format/CsvParser.h" @@ -62,7 +61,6 @@ private: QScopedPointer file; QScopedPointer parser; CsvTable t; - void dumpRow(CsvTable table, int row); }; #endif // KEEPASSX_TESTCSVPARSER_H