Previous 15994 Revisions Next

r7437 Saturday 20th February, 2010 at 15:21:07 UTC by Firewave
[MESSUI] Disabled a few more unused variables and removed some unreachable code
[src/osd/winui]columnedit.c directories.c

src/osd/winui/columnedit.c
r7436r7437
3737{
3838   LV_ITEM lvi;
3939   TCHAR   buf[80];
40   int    nFrom, nTo;
41   int    res;
40   //int    nFrom, nTo;
41   //int    res;
4242   BOOL    b_res;
4343
44   nFrom = ListView_GetItemCount(hFrom);
45   nTo   = ListView_GetItemCount(hTo);
44   //nFrom = ListView_GetItemCount(hFrom);
45   //nTo   = ListView_GetItemCount(hTo);
4646
4747   lvi.iItem = ListView_GetNextItem(hFrom, -1, LVIS_SELECTED | LVIS_FOCUSED);
4848   if (lvi.iItem < nMinItem)
r7436r7437
6161      // Add this item to the Show and delete it from Available
6262      b_res = ListView_DeleteItem(hFrom, lvi.iItem);
6363      lvi.iItem = ListView_GetItemCount(hTo);
64      res = ListView_InsertItem(hTo, &lvi);
64      /*res =*/ ListView_InsertItem(hTo, &lvi);
6565      ListView_SetItemState(hTo, lvi.iItem,
6666                       LVIS_FOCUSED | LVIS_SELECTED,
6767                       LVIS_FOCUSED | LVIS_SELECTED);
r7436r7437
7676   LV_ITEM lvi;
7777   TCHAR   buf[80];
7878   int    nMaxpos;
79   int      res;
79   //int      res;
8080   BOOL    b_res;
8181   
8282   lvi.iItem = ListView_GetNextItem(hWnd, -1, LVIS_SELECTED | LVIS_FOCUSED);
r7436r7437
9898      // Add this item to the Show and delete it from Available
9999      b_res = ListView_DeleteItem(hWnd, lvi.iItem);
100100      lvi.iItem += (bDown) ? 1 : -1;
101      res = ListView_InsertItem(hWnd,&lvi);
101      /*res =*/ ListView_InsertItem(hWnd,&lvi);
102102      ListView_SetItemState(hWnd, lvi.iItem,
103103                       LVIS_FOCUSED | LVIS_SELECTED,
104104                       LVIS_FOCUSED | LVIS_SELECTED);
r7436r7437
130130   int         i, nCount = 0;
131131   LV_ITEM     lvi;
132132   DWORD      dwShowStyle, dwAvailableStyle, dwView;
133   int         res;
133   //int         res;
134134   BOOL      b_res;
135135
136136   switch (Msg)
r7436r7437
183183         if (shown[order[i]])
184184         {
185185            lvi.iItem = nShown;
186            res = ListView_InsertItem(hShown, &lvi);
186            /*res =*/ ListView_InsertItem(hShown, &lvi);
187187            nShown++;
188188         }
189189         else
190190         {
191191            lvi.iItem = nAvail;
192            res = ListView_InsertItem(hAvailable, &lvi);
192            /*res =*/ ListView_InsertItem(hAvailable, &lvi);
193193            nAvail++;
194194         }
195195      }
src/osd/winui/directories.c
r7436r7437
121121
122122   case WM_NOTIFY:
123123      return (BOOL)HANDLE_WM_NOTIFY(hDlg, wParam, lParam, Directories_OnNotify);
124      break;
125124
126125   case WM_CLOSE:
127126      HANDLE_WM_CLOSE(hDlg, wParam, lParam, Directories_OnClose);
r7436r7437
216215   LV_ITEM Item;
217216   HWND   hList  = GetDlgItem(hDlg, IDC_DIR_LIST);
218217   HWND   hCombo = GetDlgItem(hDlg, IDC_DIR_COMBO);
219   int      res;
218   //int      res;
220219   BOOL   b_res;
221220
222221   /* Remove previous */
r7436r7437
232231   if (IsMultiDir(nType))
233232   {
234233      Item.pszText = (TCHAR*) TEXT(DIRLIST_NEWENTRYTEXT);
235      res = ListView_InsertItem(hList, &Item);
234      /*res =*/ ListView_InsertItem(hList, &Item);
236235      for (i = DirInfo_NumDir(g_pDirInfo, nType) - 1; 0 <= i; i--)
237236      {
238237         Item.pszText = DirInfo_Path(g_pDirInfo, nType, i);
239         res = ListView_InsertItem(hList, &Item);
238         /*res =*/ ListView_InsertItem(hList, &Item);
240239      }
241240   }
242241   else
243242   {
244243      Item.pszText = DirInfo_Dir(g_pDirInfo, nType);
245      res = ListView_InsertItem(hList, &Item);
244      /*res =*/ ListView_InsertItem(hList, &Item);
246245   }
247246
248247   /* select first one */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team