Remove variables that were unused-but-set

This commit is contained in:
Kp 2013-05-26 01:56:21 +00:00
parent b65272771e
commit aebc5da4d3
2 changed files with 7 additions and 10 deletions

View file

@ -345,7 +345,6 @@ void hostage_close_window()
int hostage_dialog_handler(UI_DIALOG *dlg, d_event *event, hostage_dialog *h) int hostage_dialog_handler(UI_DIALOG *dlg, d_event *event, hostage_dialog *h)
{ {
fix DeltaTime;
fix64 Temp; fix64 Temp;
int keypress = 0; int keypress = 0;
int rval = 0; int rval = 0;
@ -392,7 +391,6 @@ int hostage_dialog_handler(UI_DIALOG *dlg, d_event *event, hostage_dialog *h)
// A simple frame time counter for spinning the objects... // A simple frame time counter for spinning the objects...
Temp = timer_query(); Temp = timer_query();
DeltaTime = Temp - h->time;
h->time = Temp; h->time = Temp;
if (CurrentHostageIndex > -1 ) { if (CurrentHostageIndex > -1 ) {

View file

@ -1753,11 +1753,12 @@ void bm_read_hostage()
void bm_read_hostage_face(int skip, int pc_shareware) void bm_read_hostage_face(int skip, int pc_shareware)
{ {
char *abm_name,*equal_ptr; char *equal_ptr;
int clip_num=-1,sound_num=-1; #ifndef NDEBUG
fix time=0; int clip_num=-1;
#endif
abm_name = strtok( NULL, space ); strtok( NULL, space );
arg = strtok( NULL, space ); arg = strtok( NULL, space );
while (arg!=NULL) { while (arg!=NULL) {
@ -1768,13 +1769,11 @@ void bm_read_hostage_face(int skip, int pc_shareware)
// if we have john=cool, arg is 'john' and equal_ptr is 'cool' // if we have john=cool, arg is 'john' and equal_ptr is 'cool'
#ifndef NDEBUG
if (!d_stricmp( arg, "clip_num" )) { if (!d_stricmp( arg, "clip_num" )) {
clip_num = atoi(equal_ptr); clip_num = atoi(equal_ptr);
} else if (!d_stricmp( arg, "time" )) {
time = fl2f(atof(equal_ptr));
} else if (!d_stricmp( arg, "sound_num" )) {
sound_num = atoi(equal_ptr);
} }
#endif
} }
arg = strtok( NULL, space ); arg = strtok( NULL, space );