Kaydet (Commit) 2dcc6a49 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused code BigInt::GetString()

Change-Id: I0e1b1e07103b7aafd0b6691e0fcf0d2c8f612ac8
üst f6d97d00
...@@ -80,7 +80,6 @@ public: ...@@ -80,7 +80,6 @@ public:
operator sal_uIntPtr() const; operator sal_uIntPtr() const;
void Set( bool bSet ) { bIsSet = bSet ? sal_True : sal_False; } void Set( bool bSet ) { bIsSet = bSet ? sal_True : sal_False; }
OUString GetString() const;
bool IsSet() const { return (bool)bIsSet; } bool IsSet() const { return (bool)bIsSet; }
bool IsNeg() const; bool IsNeg() const;
......
...@@ -607,49 +607,6 @@ BigInt::operator double() const ...@@ -607,49 +607,6 @@ BigInt::operator double() const
} }
} }
OUString BigInt::GetString() const
{
if ( !bIsBig )
{
return OUString::number( nVal );
}
else
{
BigInt aTmp( *this );
BigInt a1000000000( 1000000000L );
aTmp.Abs();
OUStringBuffer sBuff(30);
do
{
BigInt a = aTmp;
a %= a1000000000;
aTmp /= a1000000000;
if ( a.nVal < 100000000L )
{
// to get leading 0s
OUString aStr(OUString::number( a.nVal + 1000000000L ));
sBuff.insert(0, aStr.getStr() + 1);
}
else
{
sBuff.insert(0, OUString::number( a.nVal ));
}
}
while( aTmp.bIsBig );
if ( bIsNeg )
{
sBuff.insert(0, OUString::number( -aTmp.nVal ));
}
else
{
sBuff.insert(0, OUString::number( aTmp.nVal ));
}
return sBuff.makeStringAndClear();
}
}
BigInt& BigInt::operator=( const BigInt& rBigInt ) BigInt& BigInt::operator=( const BigInt& rBigInt )
{ {
if ( rBigInt.bIsBig ) if ( rBigInt.bIsBig )
......
AddressWalker::pop() AddressWalker::pop()
BigInt::BigInt(unsigned int) BigInt::BigInt(unsigned int)
BigInt::GetString() const
CalcUnoApiTest::CalcUnoApiTest(rtl::OUString const&) CalcUnoApiTest::CalcUnoApiTest(rtl::OUString const&)
Chart2ExportTest::testFdo74115WallGradientFill() Chart2ExportTest::testFdo74115WallGradientFill()
ComboBox::GetMRUCount() const ComboBox::GetMRUCount() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment