summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-11-27 16:39:44 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-11-27 16:39:44 +0300
commit0a2bac03e5bae0e72f02dbb1c6c56b8ab3822024 (patch)
treed1e388df23afccc3613a288043f154f1ee06a752 /plugins/SmileyAdd
parent17f6f98d5714db3e3edebb00ca09029ce18e72fe (diff)
SmileyAdd: another atavism removed
Diffstat (limited to 'plugins/SmileyAdd')
-rw-r--r--plugins/SmileyAdd/src/services.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp
index efc8e2cb10..f7419c7b77 100644
--- a/plugins/SmileyAdd/src/services.cpp
+++ b/plugins/SmileyAdd/src/services.cpp
@@ -107,44 +107,6 @@ static INT_PTR ReplaceSmileysCommand(WPARAM, LPARAM lParam)
/////////////////////////////////////////////////////////////////////////////////////////
-static int GetInfoCommandE(SMADD_INFO *smre, bool retDup)
-{
- if (smre == nullptr)
- return FALSE;
-
- SmileyPackType *SmileyPack = FindSmileyPack(smre->Protocolname);
- if (SmileyPack == nullptr || SmileyPack->SmileyCount() == 0) {
- smre->ButtonIcon = nullptr;
- smre->NumberOfSmileys = 0;
- smre->NumberOfVisibleSmileys = 0;
- return FALSE;
- }
-
- SmileyType *sml = FindButtonSmiley(SmileyPack);
-
- if (sml != nullptr)
- smre->ButtonIcon = retDup ? sml->GetIconDup() : sml->GetIcon();
- else
- smre->ButtonIcon = GetDefaultIcon(retDup);
-
- smre->NumberOfSmileys = SmileyPack->SmileyCount();
- smre->NumberOfVisibleSmileys = SmileyPack->VisibleSmileyCount();
-
- return TRUE;
-}
-
-static INT_PTR GetInfoCommand(WPARAM, LPARAM lParam)
-{
- return GetInfoCommandE((SMADD_INFO*)lParam, false);
-}
-
-static INT_PTR GetInfoCommand2(WPARAM, LPARAM lParam)
-{
- return GetInfoCommandE((SMADD_INFO*)lParam, true);
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
static INT_PTR ParseTextBatch(WPARAM, LPARAM lParam)
{
SMADD_BATCHPARSE *smre = (SMADD_BATCHPARSE*)lParam;
@@ -406,8 +368,6 @@ void InitServices()
HookEvent(ME_CLIST_PREBUILDCONTACTMENU, RebuildContactMenu);
CreateServiceFunction(MS_SMILEYADD_REPLACESMILEYS, ReplaceSmileysCommand);
- CreateServiceFunction(MS_SMILEYADD_GETINFO, GetInfoCommand);
- CreateServiceFunction(MS_SMILEYADD_GETINFO2, GetInfoCommand2);
CreateServiceFunction(MS_SMILEYADD_REGISTERCATEGORY, RegisterPack);
CreateServiceFunction(MS_SMILEYADD_BATCHPARSE, ParseTextBatch);
CreateServiceFunction(MS_SMILEYADD_BATCHFREE, FreeTextBatch);