Skip to content

Commit

Permalink
Removed unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhilkinSerg committed Dec 3, 2019
1 parent 1a07854 commit 10e59de
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/consumption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,6 @@ int player::get_acquirable_energy( const item &it, rechargeable_cbm cbm ) const
const int to_charge = std::min( static_cast<int>( it.fuel_energy() * to_consume ),
units::to_kilojoule( get_max_power_level() - get_power_level() ) );
return to_charge;
break;
}

return 0;
Expand Down
1 change: 0 additions & 1 deletion src/pickup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ bool Pickup::query_thief()
} else {
// error
debugmsg( "Not a valid option [ %s ]", answer );
return false;
}
return false;
}
Expand Down

0 comments on commit 10e59de

Please sign in to comment.