summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-05-03 17:44:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-05-03 17:44:53 +0300
commite36fec231359220bf3af8bb8c1957078dd046f4e (patch)
treec6e2ff4c10e811ddd1b892d0e9646adbb75e1322 /src/mir_core
parentdedc5fb828f07003eb2bfb4356055baec8490a5c (diff)
CCtrlRichEdit::GetRichTextUtf considered useless
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/CCtrlRichEdit.cpp17
-rw-r--r--src/mir_core/src/mir_core.def1
-rw-r--r--src/mir_core/src/mir_core64.def1
3 files changed, 0 insertions, 19 deletions
diff --git a/src/mir_core/src/CCtrlRichEdit.cpp b/src/mir_core/src/CCtrlRichEdit.cpp
index 5fd2203d5d..1a1abc11fc 100644
--- a/src/mir_core/src/CCtrlRichEdit.cpp
+++ b/src/mir_core/src/CCtrlRichEdit.cpp
@@ -44,23 +44,6 @@ int CCtrlRichEdit::GetRichTextLength(int iCodePage) const
return (int)SendMessage(m_hwnd, EM_GETTEXTLENGTHEX, (WPARAM)&gtl, 0);
}
-char* CCtrlRichEdit::GetRichTextUtf() const
-{
- int textBufferSize = GetRichTextLength(CP_UTF8);
- if (textBufferSize == 0)
- return nullptr;
-
- textBufferSize++;
- char *textBuffer = (char*)mir_alloc(textBufferSize+1);
-
- GETTEXTEX gt = {};
- gt.cb = textBufferSize;
- gt.flags = GT_USECRLF;
- gt.codepage = CP_UTF8;
- SendMessage(m_hwnd, EM_GETTEXTEX, (WPARAM)&gt, (LPARAM)textBuffer);
- return textBuffer;
-}
-
int CCtrlRichEdit::SetRichText(const wchar_t *text)
{
SETTEXTEX st;
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def
index 5fd89d1bca..f5037de864 100644
--- a/src/mir_core/src/mir_core.def
+++ b/src/mir_core/src/mir_core.def
@@ -1045,7 +1045,6 @@ CallFunctionSync @1170
?GetRichTextLength@CCtrlRichEdit@@QBEHH@Z @1232 NONAME
?SetRichText@CCtrlRichEdit@@QAEHPB_W@Z @1233 NONAME
?SetRichTextRtf@CCtrlRichEdit@@QAEHPBD@Z @1234 NONAME
-?GetRichTextUtf@CCtrlRichEdit@@QBEPADXZ @1235 NONAME
?GetRichTextRtf@CCtrlRichEdit@@QBEPAD_N0@Z @1236 NONAME
?SetReadOnly@CCtrlRichEdit@@QAEX_N@Z @1237 NONAME
?Hide@CDlgBase@@QAEXXZ @1238 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def
index 02fa033f13..31edd2dbea 100644
--- a/src/mir_core/src/mir_core64.def
+++ b/src/mir_core/src/mir_core64.def
@@ -1045,7 +1045,6 @@ CallFunctionSync @1170
?GetRichTextLength@CCtrlRichEdit@@QEBAHH@Z @1232 NONAME
?SetRichText@CCtrlRichEdit@@QEAAHPEB_W@Z @1233 NONAME
?SetRichTextRtf@CCtrlRichEdit@@QEAAHPEBD@Z @1234 NONAME
-?GetRichTextUtf@CCtrlRichEdit@@QEBAPEADXZ @1235 NONAME
?GetRichTextRtf@CCtrlRichEdit@@QEBAPEAD_N0@Z @1236 NONAME
?SetReadOnly@CCtrlRichEdit@@QEAAX_N@Z @1237 NONAME
?Hide@CDlgBase@@QEAAXXZ @1238 NONAME