[frameworks/kwallet] src/runtime/ksecretd: ksecretd: Drop unused functions

Nicolas Fella <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit e1a48bb0a990c5d916bcf2f9553dc754f47e8e89 by Nicolas Fella.
Committed on 02/08/2026 at 14:40.
Pushed by nicolasfella into branch 'master'.

ksecretd: Drop unused functions

M  +0    -30   src/runtime/ksecretd/autotests/mockkwalletd.cpp
M  +0    -337  src/runtime/ksecretd/ksecretd.cpp
M  +0    -71   src/runtime/ksecretd/ksecretd.h

https://invent.kde.org/frameworks/kwallet/-/commit/e1a48bb0a990c5d916bcf2f9553dc754f47e8e89

diff --git a/src/runtime/ksecretd/autotests/mockkwalletd.cpp b/src/runtime/ksecretd/autotests/mockkwalletd.cpp
index 95062efd..d9b63108 100644
--- a/src/runtime/ksecretd/autotests/mockkwalletd.cpp
+++ b/src/runtime/ksecretd/autotests/mockkwalletd.cpp
@@ -52,7 +52,6 @@ MOCK_FUNCTION(KSecretD, readMap, 4, );
 MOCK_FUNCTION(KSecretD, readPassword, 4, );
 
 MOCK_FUNCTION_RES(KSecretD, removeEntry, 4, 0, );
-MOCK_FUNCTION_RES(KSecretD, writeMap, 5, 0, );
 MOCK_FUNCTION_RES(KSecretD, writePassword, 5, 0, );
 
 using OVWriteEntry_6 = int (KSecretD::*)(int, const QString &, const QString &, const QByteArray &, int, const QString &);
@@ -65,12 +64,6 @@ MOCK_FUNCTION(KSecretD, entryType, 4, );
 MOCK_FUNCTION_RES(KSecretD, renameEntry, 5, 0, );
 
 MOCK_FUNCTION_RES(KSecretD, isEnabled, 0, 1);
-MOCK_FUNCTION(KSecretD, open, 3, );
-MOCK_FUNCTION(KSecretD, openPath, 3, );
-MOCK_FUNCTION(KSecretD, openPathAsync, 4, );
-
-using OVOpenAsync4 = int (KSecretD::*)(const QString &, qlonglong, const QString &, bool);
-MOCK_FUNCTION_OVERLOADED(KSecretD, openAsync, 4, OVOpenAsync4);
 
 using OVOpenAsync6 = int (KSecretD::*)(const QString &, qlonglong, const QString &, bool, const QDBusConnection &, const QDBusMessage &);
 MOCK_FUNCTION_OVERLOADED(KSecretD, openAsync, 6, OVOpenAsync6);
@@ -78,41 +71,18 @@ MOCK_FUNCTION_OVERLOADED(KSecretD, openAsync, 6, OVOpenAsync6);
 using OVClose4 = int (KSecretD::*)(int, bool, const QString &, const QDBusMessage &);
 MOCK_FUNCTION_OVERLOADED(KSecretD, close, 4, OVClose4);
 
-using OVClose2 = int (KSecretD::*)(const QString &, bool);
-MOCK_FUNCTION_OVERLOADED(KSecretD, close, 2, OVClose2);
-
-using OVClose3 = int (KSecretD::*)(int, bool, const QString &);
-MOCK_FUNCTION_OVERLOADED(KSecretD, close, 3, OVClose3);
-
 MOCK_FUNCTION(KSecretD, deleteWallet, 1, );
 
-MOCK_FUNCTION_OVERLOADED(KSecretD, isOpen, 1, bool (KSecretD::*)(const QString &));
 MOCK_FUNCTION_OVERLOADED(KSecretD, isOpen, 1, bool (KSecretD::*)(int));
 
-MOCK_FUNCTION(KSecretD, users, 1, const);
 MOCK_FUNCTION(KSecretD, wallets, 0, const);
 MOCK_FUNCTION(KSecretD, folderList, 2, );
-MOCK_FUNCTION(KSecretD, hasFolder, 3, );
 MOCK_FUNCTION(KSecretD, createFolder, 3, );
-MOCK_FUNCTION(KSecretD, removeFolder, 3, );
 MOCK_FUNCTION(KSecretD, entryList, 3, );
 
-#if KWALLET_BUILD_DEPRECATED_SINCE(5, 72)
-MOCK_FUNCTION(KSecretD, readEntryList, 4, );
-MOCK_FUNCTION(KSecretD, readMapList, 4, );
-MOCK_FUNCTION(KSecretD, readPasswordList, 4, );
-#endif
-
-MOCK_FUNCTION(KSecretD, entriesList, 3, );
-MOCK_FUNCTION(KSecretD, mapList, 3, );
-MOCK_FUNCTION(KSecretD, passwordList, 3, );
 MOCK_FUNCTION(KSecretD, renameWallet, 2, );
 MOCK_FUNCTION(KSecretD, hasEntry, 4, );
-MOCK_FUNCTION(KSecretD, disconnectApplication, 2, );
-MOCK_FUNCTION(KSecretD, folderDoesNotExist, 2, );
-MOCK_FUNCTION(KSecretD, keyDoesNotExist, 3, );
 MOCK_FUNCTION(KSecretD, networkWallet, 0, );
-MOCK_FUNCTION(KSecretD, localWallet, 0, );
 MOCK_FUNCTION(KSecretD, pamOpen, 3, );
 MOCK_FUNCTION(KSecretD, sync, 2, );
 MOCK_FUNCTION(KSecretD, changePassword, 3, );
diff --git a/src/runtime/ksecretd/ksecretd.cpp b/src/runtime/ksecretd/ksecretd.cpp
index 40ebd580..6143cbcd 100644
--- a/src/runtime/ksecretd/ksecretd.cpp
+++ b/src/runtime/ksecretd/ksecretd.cpp
@@ -287,47 +287,6 @@ void KSecretD::processTransactions()
     _processing = false;
 }
 
-int KSecretD::openPath(const QString &path, qlonglong wId, const QString &appid)
-{
-    int tId = openPathAsync(path, wId, appid, false);
-    if (tId < 0) {
-        return tId;
-    }
-
-    // NOTE the real return value will be sent by the dbusmessage delayed
-    // reply
-    return 0;
-    // wait for the open-transaction to be processed
-    //  KWalletOpenLoop loop(this);
-    //  return loop.waitForAsyncOpen(tId);
-}
-
-int KSecretD::open(const QString &wallet, qlonglong wId, const QString &appid)
-{
-    if (!isEnabled()) { // guard
-        return -1;
-    }
-
-    KWalletTransaction *xact = new KWalletTransaction(connection());
-    _transactions.append(xact);
-
-    message().setDelayedReply(true);
-    xact->message = message();
-
-    xact->appid = appid;
-    xact->wallet = wallet;
-    xact->wId = wId;
-    xact->modal = true; // mark dialogs as modal, the app has blocking wait
-    xact->tType = KWalletTransaction::Open;
-    xact->isPath = false;
-
-    QTimer::singleShot(0, this, SLOT(processTransactions()));
-    checkActiveDialog();
-    // NOTE the real return value will be sent by the dbusmessage delayed
-    // reply
-    return 0;
-}
-
 int KSecretD::nextTransactionId() const
 {
     return KWalletTransaction::getTransactionId();
@@ -365,38 +324,6 @@ int KSecretD::openAsync(const QString &wallet,
     return xact->tId;
 }
 
-int KSecretD::openAsync(const QString &wallet, qlonglong wId, const QString &appid, bool handleSession)
-{
-    return openAsync(wallet, wId, appid, handleSession, connection(), message());
-}
-
-int KSecretD::openPathAsync(const QString &path, qlonglong wId, const QString &appid, bool handleSession)
-{
-    if (!isEnabled()) { // guard
-        return -1;
-    }
-
-    KWalletTransaction *xact = new KWalletTransaction(connection());
-    _transactions.append(xact);
-
-    xact->appid = appid;
-    xact->wallet = path;
-    xact->wId = wId;
-    xact->modal = true;
-    xact->tType = KWalletTransaction::Open;
-    xact->isPath = true;
-    if (handleSession) {
-        qCDebug(KSECRETD_LOG) << "openPathAsync " << message().service();
-        _serviceWatcher.setConnection(connection());
-        _serviceWatcher.addWatchedService(message().service());
-        xact->service = message().service();
-    }
-    QTimer::singleShot(0, this, SLOT(processTransactions()));
-    checkActiveDialog();
-    // opening is in progress. return the transaction number
-    return xact->tId;
-}
-
 // Sets up a dialog that will be shown by kwallet.
 void KSecretD::setupDialog(QWidget *dialog, WId wId, const QString &appid, bool modal)
 {
@@ -988,15 +915,6 @@ void KSecretD::doTransactionChangePassword(const QString &appid, const QString &
     }
 }
 
-int KSecretD::close(const QString &wallet, bool force)
-{
-    const QPair<int, KWallet::Backend *> walletInfo = findWallet(wallet);
-    int handle = walletInfo.first;
-    KWallet::Backend *w = walletInfo.second;
-
-    return internalClose(w, handle, force);
-}
-
 int KSecretD::internalClose(KWallet::Backend *const w, const int handle, const bool force, const bool saveBeforeClose)
 {
     if (w) {
@@ -1039,17 +957,6 @@ int KSecretD::close(int handle, bool force, const QString &appid, const QDBusMes
     return -1; // not open to begin with, or other error
 }
 
-int KSecretD::close(int handle, bool force, const QString &appid)
-{
-    return close(handle, force, appid, message());
-}
-
-bool KSecretD::isOpen(const QString &wallet)
-{
-    const QPair<int, KWallet::Backend *> walletInfo = findWallet(wallet);
-    return walletInfo.second != nullptr;
-}
-
 bool KSecretD::isOpen(int handle)
 {
     if (handle == 0) {
@@ -1140,31 +1047,6 @@ QStringList KSecretD::folderList(int handle, const QString &appid)
     return QStringList();
 }
 
-bool KSecretD::hasFolder(int handle, const QString &f, const QString &appid)
-{
-    KWallet::Backend *b;
-
-    if ((b = getWallet(appid, handle))) {
-        return b->hasFolder(f);
-    }
-
-    return false;
-}
-
-bool KSecretD::removeFolder(int handle, const QString &f, const QString &appid)
-{
-    KWallet::Backend *b;
-
-    if ((b = getWallet(appid, handle))) {
-        bool rc = b->removeFolder(f);
-        initiateSync(handle);
-        Q_EMIT folderListUpdated(b->walletName());
-        return rc;
-    }
-
-    return false;
-}
-
 bool KSecretD::createFolder(int handle, const QString &f, const QString &appid)
 {
     KWallet::Backend *b;
@@ -1172,7 +1054,6 @@ bool KSecretD::createFolder(int handle, const QString &f, const QString &appid)
     if ((b = getWallet(appid, handle))) {
         bool rc = b->createFolder(f);
         initiateSync(handle);
-        Q_EMIT folderListUpdated(b->walletName());
         return rc;
     }
 
@@ -1194,45 +1075,6 @@ QByteArray KSecretD::readMap(int handle, const QString &folder, const QString &k
     return QByteArray();
 }
 
-#if KWALLET_BUILD_DEPRECATED_SINCE(5, 72)
-QVariantMap KSecretD::readMapList(int handle, const QString &folder, const QString &key, const QString &appid)
-{
-    KWallet::Backend *b;
-
-    if ((b = getWallet(appid, handle))) {
-        b->setFolder(folder);
-        QVariantMap rc;
-        const auto lst = b->readEntryList(key);
-        for (KWallet::Entry *entry : lst) {
-            if (entry->type() == KWallet::Wallet::Map) {
-                rc.insert(entry->key(), entry->map());
-            }
-        }
-        return rc;
-    }
-
-    return QVariantMap();
-}
-#endif
-
-QVariantMap KSecretD::mapList(int handle, const QString &folder, const QString &appid)
-{
-    QVariantMap rc;
-
-    KWallet::Backend *backend = getWallet(appid, handle);
-    if (backend) {
-        backend->setFolder(folder);
-        const QList<KWallet::Entry *> lst = backend->entriesList();
-        for (KWallet::Entry *entry : lst) {
-            if (entry->type() == KWallet::Wallet::Map) {
-                rc.insert(entry->key(), entry->map());
-            }
-        }
-    }
-
-    return rc;
-}
-
 QByteArray KSecretD::readEntry(int handle, const QString &folder, const QString &key, const QString &appid)
 {
     KWallet::Backend *b;
@@ -1248,41 +1090,6 @@ QByteArray KSecretD::readEntry(int handle, const QString &folder, const QString
     return QByteArray();
 }
 
-#if KWALLET_BUILD_DEPRECATED_SINCE(5, 72)
-QVariantMap KSecretD::readEntryList(int handle, const QString &folder, const QString &key, const QString &appid)
-{
-    KWallet::Backend *b;
-
-    if ((b = getWallet(appid, handle))) {
-        b->setFolder(folder);
-        QVariantMap rc;
-        const auto lst = b->readEntryList(key);
-        for (KWallet::Entry *entry : lst) {
-            rc.insert(entry->key(), entry->value());
-        }
-        return rc;
-    }
-
-    return QVariantMap();
-}
-#endif
-
-QVariantMap KSecretD::entriesList(int handle, const QString &folder, const QString &appid)
-{
-    QVariantMap rc;
-
-    KWallet::Backend *backend = getWallet(appid, handle);
-    if (backend) {
-        backend->setFolder(folder);
-        const QList<KWallet::Entry *> lst = backend->entriesList();
-        for (KWallet::Entry *entry : lst) {
-            rc.insert(entry->key(), entry->value());
-        }
-    }
-
-    return rc;
-}
-
 QStringList KSecretD::entryList(int handle, const QString &folder, const QString &appid)
 {
     KWallet::Backend *b;
@@ -1310,65 +1117,6 @@ QString KSecretD::readPassword(int handle, const QString &folder, const QString
     return QString();
 }
 
-#if KWALLET_BUILD_DEPRECATED_SINCE(5, 72)
-QVariantMap KSecretD::readPasswordList(int handle, const QString &folder, const QString &key, const QString &appid)
-{
-    KWallet::Backend *b;
-
-    if ((b = getWallet(appid, handle))) {
-        b->setFolder(folder);
-        QVariantMap rc;
-        const auto lst = b->readEntryList(key);
-        for (KWallet::Entry *entry : lst) {
-            if (entry->type() == KWallet::Wallet::Password) {
-                rc.insert(entry->key(), entry->password());
-            }
-        }
-        return rc;
-    }
-
-    return QVariantMap();
-}
-#endif
-
-QVariantMap KSecretD::passwordList(int handle, const QString &folder, const QString &appid)
-{
-    QVariantMap rc;
-
-    KWallet::Backend *backend = getWallet(appid, handle);
-    if (backend) {
-        backend->setFolder(folder);
-        const QList<KWallet::Entry *> lst = backend->entriesList();
-        for (KWallet::Entry *entry : lst) {
-            if (entry->type() == KWallet::Wallet::Password) {
-                rc.insert(entry->key(), entry->password());
-            }
-        }
-    }
-
-    return rc;
-}
-
-int KSecretD::writeMap(int handle, const QString &folder, const QString &key, const QByteArray &value, const QString &appid)
-{
-    KWallet::Backend *b;
-
-    if ((b = getWallet(appid, handle))) {
-        b->setFolder(folder);
-        KWallet::Entry e;
-        e.setKey(key);
-        e.setValue(value);
-        e.setType(KWallet::Wallet::Map);
-        b->writeEntry(&e);
-        initiateSync(handle);
-        emitFolderUpdated(b->walletName(), folder);
-        emitEntryUpdated(b->walletName(), folder, key);
-        return 0;
-    }
-
-    return -1;
-}
-
 int KSecretD::writeEntry(int handle, const QString &folder, const QString &key, const QByteArray &value, const QString &appid)
 {
     KWallet::Backend *b;
@@ -1381,7 +1129,6 @@ int KSecretD::writeEntry(int handle, const QString &folder, const QString &key,
         e.setType(KWallet::Wallet::Stream);
         b->writeEntry(&e);
         initiateSync(handle);
-        emitFolderUpdated(b->walletName(), folder);
         emitEntryUpdated(b->walletName(), folder, key);
         return 0;
     }
@@ -1401,7 +1148,6 @@ int KSecretD::writeEntry(int handle, const QString &folder, const QString &key,
         e.setType(KWallet::Wallet::EntryType(entryType));
         b->writeEntry(&e);
         initiateSync(handle);
-        emitFolderUpdated(b->walletName(), folder);
         return 0;
     }
 
@@ -1420,7 +1166,6 @@ int KSecretD::writePassword(int handle, const QString &folder, const QString &ke
         e.setType(KWallet::Wallet::Password);
         b->writeEntry(&e);
         initiateSync(handle);
-        emitFolderUpdated(b->walletName(), folder);
         emitEntryUpdated(b->walletName(), folder, key);
         return 0;
     }
@@ -1471,7 +1216,6 @@ int KSecretD::removeEntry(int handle, const QString &folder, const QString &key,
         b->setFolder(folder);
         bool rc = b->removeEntry(key);
         initiateSync(handle);
-        emitFolderUpdated(b->walletName(), folder);
         emitEntryDeleted(b->walletName(), folder, key);
         return rc ? 0 : -3;
     }
@@ -1568,13 +1312,7 @@ void KSecretD::notifyFailures()
 
 void KSecretD::doCloseSignals(int handle, const QString &wallet)
 {
-    Q_EMIT walletClosed(handle);
-    Q_EMIT walletClosedId(handle);
-
     Q_EMIT walletClosed(wallet);
-    if (_wallets.isEmpty()) {
-        Q_EMIT allWalletsClosed();
-    }
 }
 
 int KSecretD::renameEntry(int handle, const QString &folder, const QString &oldName, const QString &newName, const QString &appid)
@@ -1585,7 +1323,6 @@ int KSecretD::renameEntry(int handle, const QString &folder, const QString &oldN
         b->setFolder(folder);
         int rc = b->renameEntry(oldName, newName);
         initiateSync(handle);
-        emitFolderUpdated(b->walletName(), folder);
         emitEntryRenamed(b->walletName(), folder, oldName, newName);
         return rc;
     }
@@ -1599,38 +1336,6 @@ int KSecretD::renameWallet(const QString &oldName, const QString &newName)
     return walletInfo.second->renameWallet(newName);
 }
 
-QStringList KSecretD::users(const QString &wallet) const
-{
-    const QPair<int, KWallet::Backend *> walletInfo = findWallet(wallet);
-    return _sessions.getApplications(walletInfo.first);
-}
-
-bool KSecretD::disconnectApplication(const QString &wallet, const QString &application)
-{
-    const QPair<int, KWallet::Backend *> walletInfo = findWallet(wallet);
-    int handle = walletInfo.first;
-    KWallet::Backend *backend = walletInfo.second;
-
-    if (handle != -1 && _sessions.hasSession(application, handle)) {
-        int removed = _sessions.removeAllSessions(application, handle);
-
-        for (int i = 0; i < removed; ++i) {
-            backend->deref();
-        }
-        internalClose(backend, handle, false);
-
-        Q_EMIT applicationDisconnected(wallet, application);
-        return true;
-    }
-
-    return false;
-}
-
-void KSecretD::emitFolderUpdated(const QString &wallet, const QString &folder)
-{
-    Q_EMIT folderUpdated(wallet, folder);
-}
-
 void KSecretD::emitEntryUpdated(const QString &wallet, const QString &folder, const QString &key)
 {
     Q_EMIT entryUpdated(wallet, folder, key);
@@ -1655,7 +1360,6 @@ void KSecretD::emitWalletListDirty()
             internalClose(i, _wallets.key(i), true, false);
         }
     }
-    Q_EMIT walletListDirty();
 }
 
 void KSecretD::reconfigure()
@@ -1728,42 +1432,6 @@ bool KSecretD::isEnabled()
     return settings.kSecretDEnabled() && settings.kWalletDEnabled();
 }
 
-bool KSecretD::folderDoesNotExist(const QString &wallet, const QString &folder)
-{
-    if (!wallets().contains(wallet)) {
-        return true;
-    }
-
-    const QPair<int, KWallet::Backend *> walletInfo = findWallet(wallet);
-    if (walletInfo.second) {
-        return walletInfo.second->folderDoesNotExist(folder);
-    }
-
-    KWallet::Backend *b = new KWallet::Backend(wallet);
-    b->open(QByteArray());
-    bool rc = b->folderDoesNotExist(folder);
-    delete b;
-    return rc;
-}
-
-bool KSecretD::keyDoesNotExist(const QString &wallet, const QString &folder, const QString &key)
-{
-    if (!wallets().contains(wallet)) {
-        return true;
-    }
-
-    const QPair<int, KWallet::Backend *> walletInfo = findWallet(wallet);
-    if (walletInfo.second) {
-        return walletInfo.second->entryDoesNotExist(folder, key);
-    }
-
-    KWallet::Backend *b = new KWallet::Backend(wallet);
-    b->open(QByteArray());
-    bool rc = b->entryDoesNotExist(folder, key);
-    delete b;
-    return rc;
-}
-
 bool KSecretD::implicitAllow(const QString &wallet, const QString &app)
 {
     return _implicitAllowMap[wallet].contains(app);
@@ -1803,11 +1471,6 @@ QString KSecretD::networkWallet()
     return KWallet::Backend::networkWallet();
 }
 
-QString KSecretD::localWallet()
-{
-    return KWallet::Backend::localWallet();
-}
-
 void KSecretD::activatePasswordDialog()
 {
     checkActiveDialog();
diff --git a/src/runtime/ksecretd/ksecretd.h b/src/runtime/ksecretd/ksecretd.h
index 7c10bbbb..5d3ffadf 100644
--- a/src/runtime/ksecretd/ksecretd.h
+++ b/src/runtime/ksecretd/ksecretd.h
@@ -49,26 +49,6 @@ public:
     int close(int handle, bool force, const QString &appid, const QDBusMessage &message);
 
 public Q_SLOTS:
-
-    // Open and unlock the wallet
-    int open(const QString &wallet, qlonglong wId, const QString &appid);
-
-    // Open and unlock the wallet with this path
-    int openPath(const QString &path, qlonglong wId, const QString &appid);
-
-    // Open the wallet asynchronously
-    int openAsync(const QString &wallet, qlonglong wId, const QString &appid, bool handleSession);
-
-    // Open and unlock the wallet with this path asynchronously
-    int openPathAsync(const QString &path, qlonglong wId, const QString &appid, bool handleSession);
-
-    // Close and lock the wallet
-    // If force = true, will close it for all users.  Behave.  This
-    // can break applications, and is generally intended for use by
-    // the wallet manager app only.
-    int close(const QString &wallet, bool force);
-    int close(int handle, bool force, const QString &appid);
-
     // Save to disk but leave open
     Q_NOREPLY void sync(int handle, const QString &appid);
 
@@ -76,12 +56,8 @@ public Q_SLOTS:
     int deleteWallet(const QString &wallet);
 
     // Returns true if the wallet is open
-    bool isOpen(const QString &wallet);
     bool isOpen(int handle);
 
-    // List the users of this wallet
-    QStringList users(const QString &wallet) const;
-
     // Change the password of this wallet
     void changePassword(const QString &wallet, qlonglong wId, const QString &appid);
 
@@ -91,15 +67,9 @@ public Q_SLOTS:
     // A list of all folders in this wallet
     QStringList folderList(int handle, const QString &appid);
 
-    // Does this wallet have this folder?
-    bool hasFolder(int handle, const QString &folder, const QString &appid);
-
     // Create this folder
     bool createFolder(int handle, const QString &folder, const QString &appid);
 
-    // Remove this folder
-    bool removeFolder(int handle, const QString &folder, const QString &appid);
-
     // List of entries in this folder
     QStringList entryList(int handle, const QString &folder, const QString &appid);
 
@@ -110,25 +80,6 @@ public Q_SLOTS:
     QByteArray readMap(int handle, const QString &folder, const QString &key, const QString &appid);
     QString readPassword(int handle, const QString &folder, const QString &key, const QString &appid);
 
-#if KWALLET_BUILD_DEPRECATED_SINCE(5, 72)
-    // use entriesList()
-    QVariantMap readEntryList(int handle, const QString &folder, const QString &key, const QString &appid);
-#endif
-
-#if KWALLET_BUILD_DEPRECATED_SINCE(5, 72)
-    // use mapList()
-    QVariantMap readMapList(int handle, const QString &folder, const QString &key, const QString &appid);
-#endif
-
-#if KWALLET_BUILD_DEPRECATED_SINCE(5, 72)
-    // use passwordList()
-    QVariantMap readPasswordList(int handle, const QString &folder, const QString &key, const QString &appid);
-#endif
-
-    QVariantMap entriesList(int handle, const QString &folder, const QString &appid);
-    QVariantMap mapList(int handle, const QString &folder, const QString &appid);
-    QVariantMap passwordList(int handle, const QString &folder, const QString &appid);
-
     // Rename an entry.  rc=0 on success.
     int renameEntry(int handle, const QString &folder, const QString &oldName, const QString &newName, const QString &appid);
     // Rename the wallet
@@ -137,7 +88,6 @@ public Q_SLOTS:
     // Write an entry.  rc=0 on success.
     int writeEntry(int handle, const QString &folder, const QString &key, const QByteArray &value, int entryType, const QString &appid);
     int writeEntry(int handle, const QString &folder, const QString &key, const QByteArray &value, const QString &appid);
-    int writeMap(int handle, const QString &folder, const QString &key, const QByteArray &value, const QString &appid);
     int writePassword(int handle, const QString &folder, const QString &key, const QString &value, const QString &appid);
 
     // Does the entry exist?
@@ -149,21 +99,12 @@ public Q_SLOTS:
     // Remove an entry.  rc=0 on success.
     int removeEntry(int handle, const QString &folder, const QString &key, const QString &appid);
 
-    // Disconnect an app from a wallet
-    bool disconnectApplication(const QString &wallet, const QString &application);
-
     void reconfigure();
 
-    // Determine
-    bool folderDoesNotExist(const QString &wallet, const QString &folder);
-    bool keyDoesNotExist(const QString &wallet, const QString &folder, const QString &key);
-
     void closeAllWallets();
 
     QString networkWallet();
 
-    QString localWallet();
-
     // Open a wallet using a pre-hashed password. This is only useful in cooperation
     // with the kwallet PAM module. It's also less secure than manually entering the
     // password as the password hash is transmitted using D-Bus.
@@ -171,25 +112,14 @@ public Q_SLOTS:
 
 Q_SIGNALS:
     void walletAsyncOpened(int id, int handle); // used to notify KWallet::Wallet
-    void walletListDirty();
     void walletCreated(const QString &wallet);
     void walletOpened(const QString &wallet);
     void walletDeleted(const QString &wallet);
     void walletClosed(const QString &wallet); // clazy:exclude=overloaded-signal
 
-    // TODO KF6 remove this signal, replaced by walletClosedId(int)
-    void walletClosed(int handle); // clazy:exclude=overloaded-signal
-
-    // since 5.81
-    void walletClosedId(int handle);
-
-    void allWalletsClosed();
-    void folderListUpdated(const QString &wallet);
-    void folderUpdated(const QString &, const QString &);
     void entryUpdated(const QString &, const QString &, const QString &);
     void entryRenamed(const QString &, const QString &, const QString &, const QString &);
     void entryDeleted(const QString &, const QString &, const QString &);
-    void applicationDisconnected(const QString &wallet, const QString &application);
 
 private Q_SLOTS:
     void slotServiceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner);
@@ -213,7 +143,6 @@ private:
     int generateHandle();
     // Emit signals about closing wallets
     void doCloseSignals(int, const QString &);
-    void emitFolderUpdated(const QString &, const QString &);
     void emitEntryUpdated(const QString &, const QString &, const QString &);
     void emitEntryRenamed(const QString &, const QString &, const QString &, const QString &);
     void emitEntryDeleted(const QString &, const QString &, const QString &);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.