Skip to content

Commit

Permalink
CODE: remove unused variables
Browse files Browse the repository at this point in the history
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@9507 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
Dwachs committed Dec 19, 2020
1 parent 891319f commit 0503a7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dataobj/schedule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void schedule_t::remove_entry( uint8 delete_enty )
if( current_stop > delete_enty ) {
current_stop--;
}
bool ok = entries.remove_at(delete_enty);
entries.remove_at(delete_enty);
make_current_stop_valid();
}

Expand Down
3 changes: 1 addition & 2 deletions simintr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ char const *tick_to_string( uint32 ticks )

char const *difftick_to_string( sint32 ticks, bool round_to_quaters )
{
static sint32 tage_per_month = 31;
static char time [128];

time[0] = 0;
Expand All @@ -231,7 +230,7 @@ char const *difftick_to_string( sint32 ticks, bool round_to_quaters )
sprintf( days, "%+i ", num_days );
}

uint32 tage, hours, minuten;
uint32 hours, minuten;
if (env_t::show_month > env_t::DATE_FMT_MONTH) {
hours = (((sint64)ticks*31) >> (welt_modell->ticks_per_world_month_shift-16));
minuten = (((hours*3) % 8192)*60)/8192;
Expand Down

0 comments on commit 0503a7f

Please sign in to comment.