summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-04-09 11:54:56 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-04-09 11:54:56 +0300
commit35779696d8cc4aa50408e5dc660a74c854bc5cc4 (patch)
treed79fa72f1ea1d00759c5ba881f557d9b412338fe /plugins
parentc394d9c11b493299c60e90325e8628cb4afe07bc (diff)
we don't need this thing either
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index e046d26281..13514af2fa 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -1332,23 +1332,6 @@ void CLogWindow::LogChatEvents(const LOGINFO *lin)
CallService(MS_SMILEYADD_REPLACESMILEYS, 0, (LPARAM)&sm);
}
- // trim the message log to the number of most recent events
- // this uses hidden marks in the rich text to find the events which should be deleted
- if (si->bTrimmed) {
- wchar_t szPattern[50];
- mir_snwprintf(szPattern, L"~-+%p+-~", &lin);
-
- FINDTEXTEX fi;
- fi.lpstrText = szPattern;
- fi.chrg.cpMin = 0;
- fi.chrg.cpMax = -1;
- if (m_rtf.SendMsg(EM_FINDTEXTEX, FR_DOWN, (LPARAM)&fi) != 0) {
- m_rtf.SendMsg(EM_SETSEL, 0, fi.chrgText.cpMax + 1);
- m_rtf.SendMsg(EM_REPLACESEL, TRUE, (LPARAM)L"");
- }
- si->bTrimmed = false;
- }
-
// scroll log to bottom if the log was previously scrolled to bottom, else restore old position
if (bRedraw || bAtBottom)
ScrollToBottom(false, false);