Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed not needed variable and work in standard library.
Browse files Browse the repository at this point in the history
Found by Cppcheck (that variable's value was never used).
  • Loading branch information
philippwiesemann committed Jul 20, 2013
1 parent 7662b95 commit 651b33e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/stdlib/SDL_string.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 651b33e

Please sign in to comment.