[ros-diffs] [gschneider] 44557: [regedit] Amine Khaldi: Remove unused variables

gschneider at svn.reactos.org gschneider at svn.reactos.org
Sat Dec 12 23:09:05 CET 2009


Author: gschneider
Date: Sat Dec 12 23:09:05 2009
New Revision: 44557

URL: http://svn.reactos.org/svn/reactos?rev=44557&view=rev
Log:
[regedit] Amine Khaldi: Remove unused variables

Modified:
    trunk/reactos/base/applications/regedit/childwnd.c
    trunk/reactos/base/applications/regedit/hexedit.c
    trunk/reactos/base/applications/regedit/main.c
    trunk/reactos/base/applications/regedit/treeview.c

Modified: trunk/reactos/base/applications/regedit/childwnd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/childwnd.c?rev=44557&r1=44556&r2=44557&view=diff
==============================================================================
--- trunk/reactos/base/applications/regedit/childwnd.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/childwnd.c [iso-8859-1] Sat Dec 12 23:09:05 2009
@@ -87,10 +87,9 @@
 {
     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);
 }

Modified: trunk/reactos/base/applications/regedit/hexedit.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/hexedit.c?rev=44557&r1=44556&r2=44557&view=diff
==============================================================================
--- trunk/reactos/base/applications/regedit/hexedit.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/hexedit.c [iso-8859-1] Sat Dec 12 23:09:05 2009
@@ -768,15 +768,10 @@
 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);
 

Modified: trunk/reactos/base/applications/regedit/main.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/main.c?rev=44557&r1=44556&r2=44557&view=diff
==============================================================================
--- trunk/reactos/base/applications/regedit/main.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/main.c [iso-8859-1] Sat Dec 12 23:09:05 2009
@@ -65,7 +65,6 @@
     WNDCLASSEX wcFrame;
     WNDCLASSEX wcChild;
     ATOM hFrameWndClass;
-    ATOM hChildWndClass;
 
     ZeroMemory(&wcFrame, sizeof(WNDCLASSEX));
     wcFrame.cbSize = sizeof(WNDCLASSEX);
@@ -93,7 +92,7 @@
     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);
 

Modified: trunk/reactos/base/applications/regedit/treeview.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/regedit/treeview.c?rev=44557&r1=44556&r2=44557&view=diff
==============================================================================
--- trunk/reactos/base/applications/regedit/treeview.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/regedit/treeview.c [iso-8859-1] Sat Dec 12 23:09:05 2009
@@ -544,7 +544,6 @@
     HKEY hKey = NULL;
     HKEY hNewKey = NULL;
     BOOL bSuccess = FALSE;
-    LONG lResult;
     DWORD dwDisposition;
     HTREEITEM hNewItem;
 
@@ -559,7 +558,7 @@
     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);




More information about the Ros-diffs mailing list