diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-28 18:44:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-28 18:44:24 +0300 |
commit | 2cf63b38b3ddc616a18847a29ab36790138a168a (patch) | |
tree | cd108e21f71cb5f6626b1b788e70a419852a5d3d /plugins/Scriver/src/chat_manager.cpp | |
parent | 1ab93d3afabe3a5872040b5acafc9f113c196a2b (diff) |
more unneeded code removed
Diffstat (limited to 'plugins/Scriver/src/chat_manager.cpp')
-rw-r--r-- | plugins/Scriver/src/chat_manager.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/plugins/Scriver/src/chat_manager.cpp b/plugins/Scriver/src/chat_manager.cpp index f86764560a..c763f15e6a 100644 --- a/plugins/Scriver/src/chat_manager.cpp +++ b/plugins/Scriver/src/chat_manager.cpp @@ -21,23 +21,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
-HWND SM_FindWindowByContact(MCONTACT hContact)
-{
- for (int i = 0; i < pci->arSessions.getCount(); i++) {
- SESSION_INFO *si = pci->arSessions[i];
- if (si->hContact == hContact)
- return (si->pDlg) ? si->pDlg->GetHwnd() : nullptr;
- }
- return nullptr;
-}
-
SESSION_INFO* SM_FindSessionAutoComplete(const char* pszModule, SESSION_INFO *currSession, SESSION_INFO *prevSession, const wchar_t *pszOriginal, const wchar_t *pszCurrent)
{
- SESSION_INFO* pResult = nullptr;
+ SESSION_INFO *pResult = nullptr;
if (prevSession == nullptr && my_strstri(currSession->ptszName, pszOriginal) == currSession->ptszName)
pResult = currSession;
else {
- wchar_t* pszName = nullptr;
+ wchar_t *pszName = nullptr;
if (currSession == prevSession)
pszCurrent = pszOriginal;
@@ -58,11 +48,10 @@ SESSION_INFO* SM_FindSessionAutoComplete(const char* pszModule, SESSION_INFO *cu char SM_GetStatusIndicator(SESSION_INFO *si, USERINFO *ui)
{
- STATUSINFO * ti;
if (!ui || !si)
return '\0';
- ti = pci->TM_FindStatus(si->pStatuses, pci->TM_WordToString(si->pStatuses, ui->Status));
+ STATUSINFO *ti = pci->TM_FindStatus(si->pStatuses, pci->TM_WordToString(si->pStatuses, ui->Status));
if (ti) {
if ((INT_PTR)ti->hIcon < STATUSICONCOUNT) {
INT_PTR id = si->iStatusCount - (INT_PTR)ti->hIcon - 1;
|