From c2e2c85262148dcf71450dfd3c7b33ef41eb84ec Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 18 Jan 2019 23:14:19 +0300 Subject: code cleaning - ACKTYPE_URL removed; - PF1_URL removed; - IEED_EVENT_URL removed; - another URL-related code cleaning --- plugins/NewEventNotify/src/popup.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'plugins/NewEventNotify/src') diff --git a/plugins/NewEventNotify/src/popup.cpp b/plugins/NewEventNotify/src/popup.cpp index 6a371aa8c4..43ca3d2e27 100644 --- a/plugins/NewEventNotify/src/popup.cpp +++ b/plugins/NewEventNotify/src/popup.cpp @@ -189,14 +189,6 @@ static wchar_t* GetEventPreview(DBEVENTINFO *dbei) commentFix = POPUP_COMMENT_MESSAGE; break; - case EVENTTYPE_URL: - // url - if (dbei->pBlob) comment2 = mir_a2u((char *)dbei->pBlob); - // comment - if (dbei->pBlob) comment1 = mir_a2u((char *)dbei->pBlob + mir_strlen((char *)dbei->pBlob) + 1); - commentFix = POPUP_COMMENT_URL; - break; - case EVENTTYPE_FILE: if (dbei->pBlob) { char *p = (char*)dbei->pBlob + sizeof(DWORD); @@ -398,15 +390,6 @@ int PopupShow(MCONTACT hContact, MEVENT hEvent, UINT eventType) sampleEvent = TranslateT("This is a sample message event :-)"); break; - case EVENTTYPE_URL: - if (!(g_plugin.maskNotify & MASK_URL)) return 1; - pudw.lchIcon = Skin_LoadIcon(SKINICON_EVENT_URL); - pudw.colorBack = g_plugin.bDefaultColorUrl ? 0 : g_plugin.colBackUrl; - pudw.colorText = g_plugin.bDefaultColorUrl ? 0 : g_plugin.colTextUrl; - iSeconds = g_plugin.iDelayUrl; - sampleEvent = TranslateT("This is a sample URL event ;-)"); - break; - case EVENTTYPE_FILE: if (!(g_plugin.maskNotify & MASK_FILE)) return 1; pudw.lchIcon = Skin_LoadIcon(SKINICON_EVENT_FILE); @@ -579,7 +562,6 @@ int PopupUpdate(MCONTACT hContact, MEVENT hEvent) int PopupPreview() { PopupShow(0, 0, EVENTTYPE_MESSAGE); - PopupShow(0, 0, EVENTTYPE_URL); PopupShow(0, 0, EVENTTYPE_FILE); PopupShow(0, 0, -1); return 0; -- cgit v1.2.3