summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-01-18 23:14:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-01-18 23:14:19 +0300
commitc2e2c85262148dcf71450dfd3c7b33ef41eb84ec (patch)
treefe21b2d7677f955168dee25b4fea722dcd06c924 /src/core
parente3bea6d9c261c87d7f67ecc06392c0d0cd4fe2dc (diff)
code cleaning
- ACKTYPE_URL removed; - PF1_URL removed; - IEED_EVENT_URL removed; - another URL-related code cleaning
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stduihist/src/history.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/core/stduihist/src/history.cpp b/src/core/stduihist/src/history.cpp
index 3242ca2101..ce5df4032a 100644
--- a/src/core/stduihist/src/history.cpp
+++ b/src/core/stduihist/src/history.cpp
@@ -45,19 +45,6 @@ static void GetMessageDescription(DBEVENTINFO *dbei, wchar_t* buf, int cbBuf)
mir_free(msg);
}
-static void GetUrlDescription(DBEVENTINFO *dbei, wchar_t* buf, int cbBuf)
-{
- int len = dbei->cbBlob;
- if (len >= cbBuf)
- len = cbBuf-1;
-
- MultiByteToWideChar(CP_ACP, 0, (LPCSTR)dbei->pBlob, len, buf, cbBuf);
- buf[ len ] = 0;
-
- if (len < cbBuf-3)
- mir_wstrcat(buf, L"\r\n");
-}
-
static void GetFileDescription(DBEVENTINFO *dbei, wchar_t* buf, int cbBuf)
{
int len = dbei->cbBlob - sizeof(DWORD);
@@ -78,10 +65,6 @@ static void GetObjectDescription(DBEVENTINFO *dbei, wchar_t* str, int cbStr)
GetMessageDescription(dbei, str, cbStr);
break;
- case EVENTTYPE_URL:
- GetUrlDescription(dbei, str, cbStr);
- break;
-
case EVENTTYPE_FILE:
GetFileDescription(dbei, str, cbStr);
break;
@@ -104,11 +87,6 @@ static void GetObjectSummary(DBEVENTINFO *dbei, wchar_t* str, int cbStr)
else pszSrc = TranslateT("Incoming message");
break;
- case EVENTTYPE_URL:
- if (dbei->flags & DBEF_SENT) pszSrc = TranslateT("Outgoing URL");
- else pszSrc = TranslateT("Incoming URL");
- break;
-
case EVENTTYPE_FILE:
if (dbei->flags & DBEF_SENT) pszSrc = TranslateT("Outgoing file");
else pszSrc = TranslateT("Incoming file");