From 651b33efb0e6f2fcd0d454a78c3c8423bf6e5cf8 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 20 Jul 2013 21:35:26 +0200 Subject: [PATCH] Removed not needed variable and work in standard library. Found by Cppcheck (that variable's value was never used). --- src/stdlib/SDL_string.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c index 82d5232fc..fd3fba3f7 100644 --- a/src/stdlib/SDL_string.c +++ b/src/stdlib/SDL_string.c @@ -1357,7 +1357,6 @@ SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg) if (arg) { /* This isn't especially accurate, but hey, it's easy. :) */ - double precision = 1.0; unsigned long value; if (arg < 0) { @@ -1386,9 +1385,6 @@ SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg) if (info->precision < 0) { info->precision = 6; } - for (i = 0; i < info->precision; ++i) { - precision *= 0.1; - } if (info->force_type || info->precision > 0) { int mult = 10; if (left > 1) {