Removed not needed variable and work in standard library.
Found by Cppcheck (that variable's value was never used).
This commit is contained in:
parent
d92ced54a0
commit
e96e39d53b
1 changed files with 0 additions and 4 deletions
|
@ -1357,7 +1357,6 @@ SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg)
|
||||||
|
|
||||||
if (arg) {
|
if (arg) {
|
||||||
/* This isn't especially accurate, but hey, it's easy. :) */
|
/* This isn't especially accurate, but hey, it's easy. :) */
|
||||||
double precision = 1.0;
|
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
|
|
||||||
if (arg < 0) {
|
if (arg < 0) {
|
||||||
|
@ -1386,9 +1385,6 @@ SDL_PrintFloat(char *text, size_t maxlen, SDL_FormatInfo *info, double arg)
|
||||||
if (info->precision < 0) {
|
if (info->precision < 0) {
|
||||||
info->precision = 6;
|
info->precision = 6;
|
||||||
}
|
}
|
||||||
for (i = 0; i < info->precision; ++i) {
|
|
||||||
precision *= 0.1;
|
|
||||||
}
|
|
||||||
if (info->force_type || info->precision > 0) {
|
if (info->force_type || info->precision > 0) {
|
||||||
int mult = 10;
|
int mult = 10;
|
||||||
if (left > 1) {
|
if (left > 1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue