Changeset 66089 in webkit for trunk/JavaScriptCore/wtf/dtoa.cpp


Ignore:
Timestamp:
Aug 26, 2010, 1:54:34 AM (15 years ago)
Author:
[email protected]
Message:

2010-08-25 Xan Lopez <[email protected]>

Reviewed by Kent Tamura.

Local variables 'k' and 'y' in s2b() in dtoa.cpp are computed but not used
https://bugs.webkit.org/show_bug.cgi?id=29259

Remove unused code in dtoa.cpp, spotted by Wan-Teh Chang.

  • wtf/dtoa.cpp: (WTF::s2b):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/dtoa.cpp

    r65962 r66089  
    272272#endif
    273273
    274 #define Kmax 15
    275 
    276274struct BigInt {
    277275    BigInt() : sign(0) { }
     
    350348static void s2b(BigInt& b, const char* s, int nd0, int nd, uint32_t y9)
    351349{
    352     int k;
    353     int32_t y;
    354     int32_t x = (nd + 8) / 9;
    355 
    356     for (k = 0, y = 1; x > y; y <<= 1, k++) { }
    357350#ifdef Pack_32
    358351    b.sign = 0;
Note: See TracChangeset for help on using the changeset viewer.