summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-21 14:53:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-21 14:53:26 +0300
commitc86a324934107d9976262da8ea90a76e7b93a7ab (patch)
tree2889eb549ad27f9350cb1fd87bd5bf8877a3e147 /plugins
parente3a9f20bdf4196d8312c36cb0b00017197161fca (diff)
New_GPG: unused variables removed
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/New_GPG/src/globals.h2
-rwxr-xr-xplugins/New_GPG/src/init.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/New_GPG/src/globals.h b/plugins/New_GPG/src/globals.h
index adc25a42f0..b7001de220 100755
--- a/plugins/New_GPG/src/globals.h
+++ b/plugins/New_GPG/src/globals.h
@@ -30,7 +30,7 @@ struct globals_s
wchar_t key_id_global[17] = { 0 };
list <JabberAccount*> Accounts;
HFONT bold_font = nullptr;
- HANDLE hLoadPubKey = nullptr, g_hCLIcon = nullptr, hExportGpgKeys = nullptr, hImportGpgKeys = nullptr;
+ HANDLE g_hCLIcon = nullptr;
HGENMENU hSendKey = nullptr, hToggleEncryption = nullptr;
logtofile debuglog;
bool gpg_valid = false, gpg_keyexist = false;
diff --git a/plugins/New_GPG/src/init.cpp b/plugins/New_GPG/src/init.cpp
index fc1bc328ef..c142125f3a 100755
--- a/plugins/New_GPG/src/init.cpp
+++ b/plugins/New_GPG/src/init.cpp
@@ -145,7 +145,7 @@ int CMPlugin::Load()
mi.position = -0x7FFFFFFF;
mi.name.a = LPGEN("Load public GPG key");
mi.pszService = "/LoadPubKey";
- globals.hLoadPubKey = Menu_AddContactMenuItem(&mi);
+ Menu_AddContactMenuItem(&mi);
CreateServiceFunction(mi.pszService, LoadKey);
SET_UID(mi, 0xc8008193, 0x56a9, 0x414a, 0x82, 0x98, 0x78, 0xe8, 0xa8, 0x84, 0x20, 0x67);
@@ -175,14 +175,14 @@ int CMPlugin::Load()
mi.position = -0x7FFFFFFe;
mi.name.a = LPGEN("Export GPG Public keys");
mi.pszService = "/ExportGPGKeys";
- globals.hExportGpgKeys = Menu_AddMainMenuItem(&mi);
+ Menu_AddMainMenuItem(&mi);
CreateServiceFunction(mi.pszService, ExportGpGKeys);
SET_UID(mi, 0x627fcfc1, 0x4e60, 0x4428, 0xaf, 0x96, 0x11, 0x42, 0x24, 0xeb, 0x07, 0xea);
mi.position = -0x7FFFFFFF;
mi.name.a = LPGEN("Import GPG Public keys");
mi.pszService = "/ImportGPGKeys";
- globals.hImportGpgKeys = Menu_AddMainMenuItem(&mi);
+ Menu_AddMainMenuItem(&mi);
CreateServiceFunction(mi.pszService, ImportGpGKeys);
globals.g_hCLIcon = ExtraIcon_RegisterCallback(MODULENAME, Translate("GPG encryption status"), "secured", onExtraImageListRebuilding, onExtraImageApplying);