[regedit] Amine Khaldi: Remove unused variables
authorGregor Schneider <grschneider@gmail.com>
Sat, 12 Dec 2009 22:09:05 +0000 (22:09 +0000)
committerGregor Schneider <grschneider@gmail.com>
Sat, 12 Dec 2009 22:09:05 +0000 (22:09 +0000)
svn path=/trunk/; revision=44557

reactos/base/applications/regedit/childwnd.c
reactos/base/applications/regedit/hexedit.c
reactos/base/applications/regedit/main.c
reactos/base/applications/regedit/treeview.c

index 9206c43..ced601a 100644 (file)
@@ -87,10 +87,9 @@ static void OnPaint(HWND hWnd)
 {
     PAINTSTRUCT ps;
     RECT rt;
-    HDC hdc;
 
     GetClientRect(hWnd, &rt);
-    hdc = BeginPaint(hWnd, &ps);
+    BeginPaint(hWnd, &ps);
     FillRect(ps.hdc, &rt, GetSysColorBrush(COLOR_BTNFACE));
     EndPaint(hWnd, &ps);
 }
index 09ddc5b..066ee4e 100644 (file)
@@ -768,16 +768,11 @@ static BOOL
 HEXEDIT_WM_KEYDOWN(PHEXEDIT_DATA hed, INT VkCode)
 {
   size_t bufsize;
-  BOOL shift, control;
-
   if(GetKeyState(VK_MENU) & 0x8000)
   {
     return FALSE;
   }
 
-  shift = GetKeyState(VK_SHIFT) & 0x8000;
-  control = GetKeyState(VK_CONTROL) & 0x8000;
-
   bufsize = (hed->hBuffer ? LocalSize(hed->hBuffer) : 0);
 
   switch(VkCode)
index b143aa7..fa58e20 100644 (file)
@@ -65,7 +65,6 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
     WNDCLASSEX wcFrame;
     WNDCLASSEX wcChild;
     ATOM hFrameWndClass;
-    ATOM hChildWndClass;
 
     ZeroMemory(&wcFrame, sizeof(WNDCLASSEX));
     wcFrame.cbSize = sizeof(WNDCLASSEX);
@@ -93,7 +92,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
     wcChild.hIconSm = (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
                                               GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED);
 
-    hChildWndClass = RegisterClassEx(&wcChild); /* register child windows class */
+    RegisterClassEx(&wcChild); /* register child windows class */
 
     RegisterHexEditorClass(hInstance);
 
index 9b947fc..cfbd401 100644 (file)
@@ -544,7 +544,6 @@ BOOL CreateNewKey(HWND hwndTV, HTREEITEM hItem)
     HKEY hKey = NULL;
     HKEY hNewKey = NULL;
     BOOL bSuccess = FALSE;
-    LONG lResult;
     DWORD dwDisposition;
     HTREEITEM hNewItem;
 
@@ -559,7 +558,7 @@ BOOL CreateNewKey(HWND hwndTV, HTREEITEM hItem)
     do
     {
         _sntprintf(szNewKey, sizeof(szNewKey) / sizeof(szNewKey[0]), szNewKeyFormat, iIndex++);
-        lResult = RegCreateKeyEx(hKey, szNewKey, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hNewKey, &dwDisposition);
+        RegCreateKeyEx(hKey, szNewKey, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hNewKey, &dwDisposition);
         if (hNewKey && (dwDisposition == REG_OPENED_EXISTING_KEY))
         {
             RegCloseKey(hNewKey);