Skip to content

Commit 641c620

Browse files
committed
Removed useless methods and added more useful tests
1 parent 9cb2612 commit 641c620

File tree

5 files changed

+827
-35
lines changed

5 files changed

+827
-35
lines changed

modules/yup_core/text/yup_CharacterFunctions.cpp

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -453,38 +453,6 @@ int CharacterFunctions::getHexDigitValue (const yup_wchar digit) noexcept
453453
return -1;
454454
}
455455

456-
double CharacterFunctions::mulexp10 (const double value, int exponent) noexcept
457-
{
458-
if (exponent == 0)
459-
return value;
460-
461-
if (exactlyEqual (value, 0.0))
462-
return 0;
463-
464-
const bool negative = (exponent < 0);
465-
466-
if (negative)
467-
exponent = -exponent;
468-
469-
double result = 1.0, power = 10.0;
470-
471-
for (int bit = 1; exponent != 0; bit <<= 1)
472-
{
473-
if ((exponent & bit) != 0)
474-
{
475-
exponent ^= bit;
476-
result *= power;
477-
478-
if (exponent == 0)
479-
break;
480-
}
481-
482-
power *= power;
483-
}
484-
485-
return negative ? (value / result) : (value * result);
486-
}
487-
488456
yup_wchar CharacterFunctions::getUnicodeCharFromWindows1252Codepage (const uint8 c) noexcept
489457
{
490458
if (c < 0x80 || c >= 0xa0)

modules/yup_core/text/yup_CharacterFunctions.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -789,9 +789,6 @@ class YUP_API CharacterFunctions
789789

790790
return text;
791791
}
792-
793-
private:
794-
static double mulexp10 (double value, int exponent) noexcept;
795792
};
796793

797794
} // namespace yup

0 commit comments

Comments
 (0)