Removed not needed variable and work in standard library.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 20 Jul 2013 21:35:26 +0200
changeset 747661b9a4c4ca43
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
     1.1 --- a/src/stdlib/SDL_string.c	Sat Jul 20 13:11:40 2013 -0400
     1.2 +++ b/src/stdlib/SDL_string.c	Sat Jul 20 21:35:26 2013 +0200
     1.3 @@ -1357,7 +1357,6 @@
     1.4  
     1.5      if (arg) {
     1.6          /* This isn't especially accurate, but hey, it's easy. :) */
     1.7 -        double precision = 1.0;
     1.8          unsigned long value;
     1.9  
    1.10          if (arg < 0) {
    1.11 @@ -1386,9 +1385,6 @@
    1.12          if (info->precision < 0) {
    1.13              info->precision = 6;
    1.14          }
    1.15 -        for (i = 0; i < info->precision; ++i) {
    1.16 -            precision *= 0.1;
    1.17 -        }
    1.18          if (info->force_type || info->precision > 0) {
    1.19              int mult = 10;
    1.20              if (left > 1) {