Removed not needed variable and work in standard library.

Found by Cppcheck (that variable's value was never used).
This commit is contained in:
Philipp Wiesemann 2013-07-20 21:35:26 +02:00
parent d92ced54a0
commit e96e39d53b

View file

@ -1357,7 +1357,6 @@ SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg)
if (arg) { if (arg) {
/* This isn't especially accurate, but hey, it's easy. :) */ /* This isn't especially accurate, but hey, it's easy. :) */
double precision = 1.0;
unsigned long value; unsigned long value;
if (arg < 0) { if (arg < 0) {
@ -1386,9 +1385,6 @@ SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg)
if (info->precision < 0) { if (info->precision < 0) {
info->precision = 6; info->precision = 6;
} }
for (i = 0; i < info->precision; ++i) {
precision *= 0.1;
}
if (info->force_type || info->precision > 0) { if (info->force_type || info->precision > 0) {
int mult = 10; int mult = 10;
if (left > 1) { if (left > 1) {