summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-05-23 11:56:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-05-23 11:56:23 +0000
commit8678f12efce9998345efd583b850b04586d1b2eb (patch)
tree44bc99dff3a46cd5a72b9b91f26967d4847edddd
parent05eacb9fc9ecd4fa6c1119ef1e5e82e12e2c81e4 (diff)
useless code removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@9289 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/modules/clist/clc.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/modules/clist/clc.cpp b/src/modules/clist/clc.cpp
index 7d44e89fc8..baa67a4cd1 100644
--- a/src/modules/clist/clc.cpp
+++ b/src/modules/clist/clc.cpp
@@ -1148,8 +1148,7 @@ LRESULT CALLBACK fnContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam,
CallService(MS_CLIST_CONTACTCHANGEGROUP, (WPARAM)contacto->hContact, contactn->groupId);
else if (contacto->type == CLCIT_GROUP) { //dropee is a group
TCHAR szNewName[120];
- TCHAR* szGroup = cli.pfnGetGroupName(contactn->groupId, NULL);
- mir_sntprintf(szNewName, SIZEOF(szNewName), _T("%s\\%s"), szGroup, contacto->szText);
+ mir_sntprintf(szNewName, SIZEOF(szNewName), _T("%s\\%s"), cli.pfnGetGroupName(contactn->groupId, NULL), contacto->szText);
cli.pfnRenameGroup(contacto->groupId, szNewName);
}
}
@@ -1165,8 +1164,6 @@ LRESULT CALLBACK fnContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam,
else {
if (destcontact->type == CLCIT_GROUP)
destgroup = destcontact->group;
- else
- destgroup = destgroup;
CallService(MS_CLIST_GROUPMOVEBEFORE, contact->groupId, destgroup->groupId);
}
}
@@ -1174,7 +1171,6 @@ LRESULT CALLBACK fnContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam,
case DROPTARGET_OUTSIDE:
cli.pfnGetRowByIndex(dat, dat->iDragItem, &contact, NULL);
{
-
NMCLISTCONTROL nm;
nm.hdr.code = CLN_DROPPED;
nm.hdr.hwndFrom = hwnd;
@@ -1211,7 +1207,7 @@ LRESULT CALLBACK fnContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam,
KillTimer(hwnd, TIMERID_RENAME);
KillTimer(hwnd, TIMERID_INFOTIP);
- dat->selection = cli.pfnHitTest(hwnd, dat, (short) LOWORD(lParam), (short) HIWORD(lParam), &contact, NULL, &hitFlags);
+ dat->selection = cli.pfnHitTest(hwnd, dat, (short)LOWORD(lParam), (short)HIWORD(lParam), &contact, NULL, &hitFlags);
cli.pfnInvalidateRect(hwnd, NULL, FALSE);
if (dat->selection != -1)
cli.pfnEnsureVisible(hwnd, dat, dat->selection, 0);
@@ -1309,8 +1305,7 @@ LRESULT CALLBACK fnContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam,
case POPUP_GROUPHIDEOFFLINE:
if (contact->type != CLCIT_GROUP)
break;
- CallService(MS_CLIST_GROUPSETFLAGS, contact->groupId,
- MAKELPARAM(contact->group->hideOffline ? 0 : GROUPF_HIDEOFFLINE, GROUPF_HIDEOFFLINE));
+ CallService(MS_CLIST_GROUPSETFLAGS, contact->groupId, MAKELPARAM(contact->group->hideOffline ? 0 : GROUPF_HIDEOFFLINE, GROUPF_HIDEOFFLINE));
break;
}
break;