From 9b6485b5cc5f005a547e8dd3e3d5a8b90838ed99 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 24 Dec 2012 18:33:24 +0000 Subject: Fix compiler warnings by removing variables that are set but not used. Subversion-branch: /branches/v2-branch Subversion-revision: 2555 --- src/heretic/mn_menu.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/heretic/mn_menu.c') diff --git a/src/heretic/mn_menu.c b/src/heretic/mn_menu.c index 94713080..4958d9be 100644 --- a/src/heretic/mn_menu.c +++ b/src/heretic/mn_menu.c @@ -642,7 +642,6 @@ static void DrawSaveMenu(void) void MN_LoadSlotText(void) { FILE *fp; - int count; int i; char *filename; @@ -658,7 +657,7 @@ void MN_LoadSlotText(void) SlotStatus[i] = 0; continue; } - count = fread(&SlotText[i], SLOTTEXTLEN, 1, fp); + fread(&SlotText[i], SLOTTEXTLEN, 1, fp); fclose(fp); SlotStatus[i] = 1; } @@ -1040,7 +1039,6 @@ boolean MN_Responder(event_t * event) int i; MenuItem_t *item; extern boolean automapactive; - static boolean shiftdown; extern void D_StartTitle(void); extern void G_CheckDemoStatus(void); char *textBuffer; @@ -1081,11 +1079,7 @@ boolean MN_Responder(event_t * event) return true; } - if (event->data1 == KEY_RSHIFT) - { - shiftdown = (event->type == ev_keydown); - } - if (event->type != ev_keydown) + if (event->data1 != KEY_RSHIFT && event->type != ev_keydown) { return (false); } -- cgit v1.2.3