diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-19 17:17:27 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-19 17:30:39 +0300 |
commit | 877a445bdf3ac484e564bb1d62610eeb1329e991 (patch) | |
tree | 245ddad068e973c3abb54b304cc7e3ae8cafb0f4 /plugins | |
parent | b95a789fc6c46eb3b56011946b259fe57159d69c (diff) |
unused member removed
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Scriver/src/chat/main.cpp | 20 | ||||
-rw-r--r-- | plugins/Scriver/src/chat/window.cpp | 12 | ||||
-rw-r--r-- | plugins/Scriver/src/msgwindow.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/chat/main.cpp | 20 |
4 files changed, 7 insertions, 47 deletions
diff --git a/plugins/Scriver/src/chat/main.cpp b/plugins/Scriver/src/chat/main.cpp index 53e25f6e28..41cf8b408b 100644 --- a/plugins/Scriver/src/chat/main.cpp +++ b/plugins/Scriver/src/chat/main.cpp @@ -45,29 +45,12 @@ void LoadModuleIcons(MODULEINFO *mi) ImageList_Destroy(hList);
}
-static void OnDblClickSession(SESSION_INFO *si)
-{
- PostMessage(si->hWnd, GC_CLOSEWINDOW, 0, 0);
-}
-
-static void OnRemoveSession(SESSION_INFO *si)
-{
- if (si->hWnd)
- SendMessage(si->hWnd, GC_CONTROL_MSG, SESSION_TERMINATE, 0);
-}
-
static void OnReplaceSession(SESSION_INFO *si)
{
if (si->hWnd)
RedrawWindow(GetDlgItem(si->hWnd, IDC_CHAT_LIST), NULL, NULL, RDW_INVALIDATE);
}
-static void OnSetStatusBar(SESSION_INFO *si)
-{
- if (si->hWnd)
- SendMessage(si->hWnd, DM_UPDATETITLEBAR, 0, 0);
-}
-
static void OnNewUser(SESSION_INFO *si, USERINFO*)
{
if (si->hWnd)
@@ -142,11 +125,8 @@ int Chat_Load() pci->OnSetStatus = OnSetStatus;
- pci->OnRemoveSession = OnRemoveSession;
pci->OnReplaceSession = OnReplaceSession;
- pci->OnDblClickSession = OnDblClickSession;
- pci->OnSetStatusBar = OnSetStatusBar;
pci->OnFlashWindow = OnFlashWindow;
pci->OnFlashHighlight = OnFlashHighlight;
pci->ShowRoom = ShowRoom;
diff --git a/plugins/Scriver/src/chat/window.cpp b/plugins/Scriver/src/chat/window.cpp index f65ec5a5f5..18734f4d68 100644 --- a/plugins/Scriver/src/chat/window.cpp +++ b/plugins/Scriver/src/chat/window.cpp @@ -978,7 +978,7 @@ static INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPAR SendDlgItemMessage(hwndDlg, IDC_LOG, EM_HIDESELECTION, TRUE, 0);
SendMessage(hwndDlg, GC_SETWNDPROPS, 0, 0);
- SendMessage(hwndDlg, DM_UPDATESTATUSBAR, 0, 0);
+ SendMessage(hwndDlg, GC_UPDATESTATUSBAR, 0, 0);
SendMessage(hwndDlg, DM_UPDATETITLEBAR, 0, 0);
SendMessage(GetParent(hwndDlg), CM_ADDCHILD, (WPARAM)hwndDlg, psi->hContact);
@@ -991,7 +991,7 @@ static INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPAR // LoadGlobalSettings();
InitButtons(hwndDlg, si);
- SendMessage(hwndDlg, DM_UPDATESTATUSBAR, 0, 0);
+ SendMessage(hwndDlg, GC_UPDATESTATUSBAR, 0, 0);
SendMessage(hwndDlg, DM_UPDATETITLEBAR, 0, 0);
SendMessage(hwndDlg, GC_FIXTABICONS, 0, 0);
@@ -1061,7 +1061,7 @@ static INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPAR SendMessage(hwndDlg, DM_UPDATETABCONTROL, 0, 0);
break;
- case DM_UPDATESTATUSBAR:
+ case GC_UPDATESTATUSBAR:
{
MODULEINFO *mi = pci->MM_FindModule(si->pszModule);
hIcon = si->wStatus == ID_STATUS_ONLINE ? mi->hOnlineIcon : mi->hOfflineIcon;
@@ -1297,12 +1297,12 @@ static INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPAR case GC_CONTROL_MSG:
switch (wParam) {
case SESSION_OFFLINE:
- SendMessage(hwndDlg, DM_UPDATESTATUSBAR, 0, 0);
+ SendMessage(hwndDlg, GC_UPDATESTATUSBAR, 0, 0);
SendMessage(si->hWnd, GC_UPDATENICKLIST, 0, 0);
return TRUE;
case SESSION_ONLINE:
- SendMessage(hwndDlg, DM_UPDATESTATUSBAR, 0, 0);
+ SendMessage(hwndDlg, GC_UPDATESTATUSBAR, 0, 0);
return TRUE;
case WINDOW_HIDDEN:
@@ -1340,7 +1340,7 @@ LABEL_SHOWWINDOW: SendMessage(hwndDlg, WM_SIZE, 0, 0);
SendMessage(hwndDlg, GC_REDRAWLOG, 0, 0);
SendMessage(hwndDlg, GC_UPDATENICKLIST, 0, 0);
- SendMessage(hwndDlg, DM_UPDATESTATUSBAR, 0, 0);
+ SendMessage(hwndDlg, GC_UPDATESTATUSBAR, 0, 0);
ShowWindow(hwndDlg, SW_SHOW);
SendMessage(hwndDlg, WM_SIZE, 0, 0);
SetForegroundWindow(hwndDlg);
diff --git a/plugins/Scriver/src/msgwindow.cpp b/plugins/Scriver/src/msgwindow.cpp index 4f5749f1f3..eea70544f1 100644 --- a/plugins/Scriver/src/msgwindow.cpp +++ b/plugins/Scriver/src/msgwindow.cpp @@ -252,7 +252,7 @@ static void ActivateChild(ParentWindowData *dat, HWND child) HWND prev = dat->hwndActive;
dat->hwndActive = child;
SetupStatusBar(dat);
- SendMessage(dat->hwndActive, DM_UPDATESTATUSBAR, 0, 0);
+ SendMessage(dat->hwndActive, GC_UPDATESTATUSBAR, 0, 0);
SendMessage(dat->hwndActive, DM_UPDATETITLEBAR, 0, 0);
SendMessage(dat->hwnd, WM_SIZE, 0, 0);
ShowWindow(dat->hwndActive, SW_SHOWNOACTIVATE);
diff --git a/plugins/TabSRMM/src/chat/main.cpp b/plugins/TabSRMM/src/chat/main.cpp index aa152ef95b..52821f0123 100644 --- a/plugins/TabSRMM/src/chat/main.cpp +++ b/plugins/TabSRMM/src/chat/main.cpp @@ -45,17 +45,6 @@ static void OnCreateSession(SESSION_INFO *si, MODULEINFO *mi) }
}
-static void OnDblClickSession(SESSION_INFO *si)
-{
- PostMessage(si->hWnd, GC_CLOSEWINDOW, 0, 0);
-}
-
-static void OnRemoveSession(SESSION_INFO *si)
-{
- if (si->hWnd)
- SendMessage(si->hWnd, GC_CONTROL_MSG, SESSION_TERMINATE, 0);
-}
-
static void OnReplaceSession(SESSION_INFO *si)
{
if (si->hContact)
@@ -70,12 +59,6 @@ static void OnSetTopic(SESSION_INFO *si) SendMessage(si->hWnd, DM_INVALIDATEPANEL, 0, 0);
}
-static void OnSetStatusBar(SESSION_INFO *si)
-{
- if (si->hWnd)
- SendMessage(si->hWnd, GC_UPDATESTATUSBAR, 0, 0);
-}
-
static void OnNewUser(SESSION_INFO *si, USERINFO*)
{
if (si->hWnd) {
@@ -246,11 +229,8 @@ int Chat_Load() pci->OnSetTopic = OnSetTopic;
pci->OnCreateSession = OnCreateSession;
- pci->OnRemoveSession = OnRemoveSession;
pci->OnReplaceSession = OnReplaceSession;
- pci->OnDblClickSession = OnDblClickSession;
- pci->OnSetStatusBar = OnSetStatusBar;
pci->OnChangeNick = OnChangeNick;
pci->ShowRoom = ShowRoom;
pci->OnLoadSettings = OnLoadSettings;
|