mirror of
https://github.com/yawut/SDL.git
synced 2026-09-08 09:06:29 -05:00
Removed not needed variable and work in standard library.
Found by Cppcheck (that variable's value was never used).
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user