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/msgs.cpp | |
parent | 1ab93d3afabe3a5872040b5acafc9f113c196a2b (diff) |
more unneeded code removed
Diffstat (limited to 'plugins/Scriver/src/msgs.cpp')
-rw-r--r-- | plugins/Scriver/src/msgs.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 2be9a2c810..1b3ac3df92 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -290,11 +290,8 @@ static INT_PTR SetStatusText(WPARAM hContact, LPARAM lParam) return 1;
HWND hwnd = WindowList_Find(pci->hWindowList, hContact);
- if (hwnd == nullptr) {
- hwnd = SM_FindWindowByContact(hContact);
- if (hwnd == nullptr)
- return 1;
- }
+ if (hwnd == nullptr)
+ return 1;
CScriverWindow *dat = (CScriverWindow*)GetWindowLongPtr(hwnd, GWLP_USERDATA);
if (dat == nullptr || dat->m_pParent == nullptr)
@@ -438,9 +435,6 @@ int StatusIconPressed(WPARAM wParam, LPARAM lParam) return 0;
HWND hwnd = WindowList_Find(pci->hWindowList, wParam);
- if (hwnd == nullptr)
- hwnd = SM_FindWindowByContact(wParam);
-
if (hwnd != nullptr)
SendMessage(hwnd, DM_SWITCHTYPING, 0, 0);
return 0;
|