From af39e4826eca23546f3bccb1281451d5ee195478 Mon Sep 17 00:00:00 2001 From: Sylae Corell Date: Fri, 1 Aug 2014 12:27:19 -0600 Subject: [PATCH] CharEd: Unused variables --- Win32/charedit/bladpced.cpp | 3 +-- Win32/charedit/edaction.cpp | 5 ----- Win32/charedit/edfileio.cpp | 4 ---- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Win32/charedit/bladpced.cpp b/Win32/charedit/bladpced.cpp index d86d921d..864cc281 100644 --- a/Win32/charedit/bladpced.cpp +++ b/Win32/charedit/bladpced.cpp @@ -241,7 +241,6 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR, int nCm LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { -HDC hdc; PAINTSTRUCT ps; POINT press; HMENU menu; @@ -298,7 +297,7 @@ HMENU menu; return 0; case WM_PAINT: - hdc = BeginPaint(hwnd,&ps); + BeginPaint(hwnd,&ps); EndPaint(hwnd,&ps); if (hwnd != mainPtr) check_cd_event(hwnd,message,wParam,lParam); diff --git a/Win32/charedit/edaction.cpp b/Win32/charedit/edaction.cpp index f02c50b2..6944a4dd 100644 --- a/Win32/charedit/edaction.cpp +++ b/Win32/charedit/edaction.cpp @@ -72,17 +72,12 @@ Boolean handle_action(POINT the_point, UINT wparam, LONG lparam ) short i; Boolean to_return = FALSE; - Boolean ctrl_key = FALSE; - Boolean right_button = FALSE; if (lparam != -1) { the_point.x -= ulx; the_point.y -= uly; } - if (lparam == -2) - right_button = TRUE; if (MK_CONTROL & wparam) - ctrl_key = TRUE; if (file_in_mem == FALSE) return FALSE; diff --git a/Win32/charedit/edfileio.cpp b/Win32/charedit/edfileio.cpp index dd86072e..85a8690b 100644 --- a/Win32/charedit/edfileio.cpp +++ b/Win32/charedit/edfileio.cpp @@ -111,7 +111,6 @@ void file_initialize() void load_file() { - long file_size; HANDLE file_id; short i, j; Boolean town_restore = FALSE; @@ -145,7 +144,6 @@ void load_file() OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (file_id == INVALID_HANDLE_VALUE) return; - file_size = sizeof(party_record_type); for (i = 0; i < 3; i++) @@ -731,7 +729,6 @@ void save_file(short mode) short flag; short *store; party_record_type *party_ptr; - setup_save_type *setup_ptr; pc_record_type *pc_ptr; char *party_encryptor; @@ -996,7 +993,6 @@ void save_file(short mode) party_encryptor[count] ^= 0x5C; // SAVE SETUP - setup_ptr = &setup_save; if (WriteFile(file_id, &setup_save, sizeof(setup_save_type), &bytes, NULL) == FALSE) { CloseHandle(file_id);