Removed not needed variable and work in standard library.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 20 Jul 2013 21:35:26 +0200
changeset 7476 61b9a4c4ca43
parent 7475 c244bc85fb84
child 7477 a73210626b97
Removed not needed variable and work in standard library. Found by Cppcheck (that variable's value was never used).
src/stdlib/SDL_string.c
--- a/src/stdlib/SDL_string.c	Sat Jul 20 13:11:40 2013 -0400
+++ b/src/stdlib/SDL_string.c	Sat Jul 20 21:35:26 2013 +0200
@@ -1357,7 +1357,6 @@
 
     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 @@
         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) {