diff options
author | Lukas Vogel <lukedirtwalker@gmail.com> | 2018-03-13 16:00:15 +0100 |
---|---|---|
committer | Lukas Vogel <lukedirtwalker@gmail.com> | 2018-03-13 16:21:15 +0100 |
commit | abeef322fb79449adb3af9309db045183b22b0f5 (patch) | |
tree | 7e345c1d4a4bf4a4885605a95e8a58d07f0f3af7 | |
parent | d5645c0bf624e7b11a513d6e936d60f8f20161db (diff) |
Remove unused code
-rw-r--r-- | src/qtpasssettings.cpp | 4 | ||||
-rw-r--r-- | src/qtpasssettings.h | 1 | ||||
-rw-r--r-- | src/util.cpp | 13 | ||||
-rw-r--r-- | src/util.h | 1 |
4 files changed, 0 insertions, 19 deletions
diff --git a/src/qtpasssettings.cpp b/src/qtpasssettings.cpp index 915e9892..a38e4037 100644 --- a/src/qtpasssettings.cpp +++ b/src/qtpasssettings.cpp @@ -264,10 +264,6 @@ QString QtPassSettings::getGpgHome(const QString &defaultValue) { return getStringValue(SettingsConstants::gpgHome, defaultValue); } -void QtPassSettings::setGpgHome(const QString &gpgHome) { - setStringValue(SettingsConstants::gpgHome, gpgHome); -} - bool QtPassSettings::isUseWebDav(const bool &defaultValue) { return getBoolValue(SettingsConstants::useWebDav, defaultValue); } diff --git a/src/qtpasssettings.h b/src/qtpasssettings.h index bfa3c621..c3c2506e 100644 --- a/src/qtpasssettings.h +++ b/src/qtpasssettings.h @@ -105,7 +105,6 @@ public: static QString getGpgHome(const QString &defaultValue = QVariant().toString()); - static void setGpgHome(const QString &gpgHome); static bool isUseWebDav(const bool &defaultValue = QVariant().toBool()); static void setUseWebDav(const bool &useWebDav); diff --git a/src/util.cpp b/src/util.cpp index 5bba527e..15a19ca1 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -125,19 +125,6 @@ bool Util::checkConfig() { } /** - * @brief Util::qSleep because . . windows sleep. - * @param ms - */ -void Util::qSleep(int ms) { -#ifdef Q_OS_WIN - Sleep(uint(ms)); -#else - struct timespec ts = {ms / 1000, (ms % 1000) * 1000 * 1000}; - nanosleep(&ts, NULL); -#endif -} - -/** * @brief Util::getDir get selectd folder path * @param index * @param forPass short or full path @@ -17,7 +17,6 @@ public: static QString findPasswordStore(); static QString normalizeFolderPath(QString path); static bool checkConfig(); - static void qSleep(int ms); static QString getDir(const QModelIndex &index, bool forPass, const QFileSystemModel &model, const StoreModel &storeModel); |