From: Gregor Schneider Date: Sat, 12 Dec 2009 22:09:05 +0000 (+0000) Subject: [regedit] Amine Khaldi: Remove unused variables X-Git-Tag: backups/aicom-network-stable@46924~313 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=5ed5d979057268842e3bd003548d319fc229faa7 [regedit] Amine Khaldi: Remove unused variables svn path=/trunk/; revision=44557 --- diff --git a/reactos/base/applications/regedit/childwnd.c b/reactos/base/applications/regedit/childwnd.c index 9206c43e55e..ced601a23c0 100644 --- a/reactos/base/applications/regedit/childwnd.c +++ b/reactos/base/applications/regedit/childwnd.c @@ -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); } diff --git a/reactos/base/applications/regedit/hexedit.c b/reactos/base/applications/regedit/hexedit.c index 09ddc5b6f01..066ee4e156b 100644 --- a/reactos/base/applications/regedit/hexedit.c +++ b/reactos/base/applications/regedit/hexedit.c @@ -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) diff --git a/reactos/base/applications/regedit/main.c b/reactos/base/applications/regedit/main.c index b143aa77c02..fa58e20e1be 100644 --- a/reactos/base/applications/regedit/main.c +++ b/reactos/base/applications/regedit/main.c @@ -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); diff --git a/reactos/base/applications/regedit/treeview.c b/reactos/base/applications/regedit/treeview.c index 9b947fc3ed2..cfbd401d009 100644 --- a/reactos/base/applications/regedit/treeview.c +++ b/reactos/base/applications/regedit/treeview.c @@ -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);