From 5d4a0da4557c1bbd3d8463201bc3f6ab93b06ae6 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 6 Jan 2012 11:10:51 +0100 Subject: [PATCH] Remove unneeded master access revoke command. Revoking master access currently simply means to revoke access to the default keyring. --- headers/private/app/KeyStoreDefs.h | 1 - src/kits/app/KeyStore.cpp | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/headers/private/app/KeyStoreDefs.h b/headers/private/app/KeyStoreDefs.h index d1198a6d3a..315944c18c 100644 --- a/headers/private/app/KeyStoreDefs.h +++ b/headers/private/app/KeyStoreDefs.h @@ -37,7 +37,6 @@ enum { KEY_STORE_GET_NEXT_MASTER_KEYRING = 'KnrM', KEY_STORE_IS_KEYRING_ACCESSIBLE = 'KiaR', KEY_STORE_REVOKE_ACCESS = 'KvaR', - KEY_STORE_REVOKE_MASTER_ACCESS = 'KvaM', KEY_STORE_GET_NEXT_APPLICATION = 'KnKA', KEY_STORE_REMOVE_APPLICATION = 'KrKA', }; diff --git a/src/kits/app/KeyStore.cpp b/src/kits/app/KeyStore.cpp index 91d9fc8be8..04309bb317 100644 --- a/src/kits/app/KeyStore.cpp +++ b/src/kits/app/KeyStore.cpp @@ -328,8 +328,7 @@ BKeyStore::RevokeAccess(const char* keyring) status_t BKeyStore::RevokeMasterAccess() { - BMessage message(KEY_STORE_REVOKE_MASTER_ACCESS); - return _SendKeyMessage(message, NULL); + return RevokeAccess(NULL); }