diff options
-rw-r--r-- | include/tools/bigint.hxx | 1 | ||||
-rw-r--r-- | tools/source/generic/bigint.cxx | 43 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
3 files changed, 0 insertions, 45 deletions
diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx index 3b8a98261a45..6d52b60a7a63 100644 --- a/include/tools/bigint.hxx +++ b/include/tools/bigint.hxx @@ -80,7 +80,6 @@ public: operator sal_uIntPtr() const; void Set( bool bSet ) { bIsSet = bSet ? sal_True : sal_False; } - OUString GetString() const; bool IsSet() const { return (bool)bIsSet; } bool IsNeg() const; diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx index 6576cfb9a7dc..61e404c4930d 100644 --- a/tools/source/generic/bigint.cxx +++ b/tools/source/generic/bigint.cxx @@ -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 ) { if ( rBigInt.bIsBig ) diff --git a/unusedcode.easy b/unusedcode.easy index b25c7165b91f..86cb44848fa5 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -1,6 +1,5 @@ AddressWalker::pop() BigInt::BigInt(unsigned int) -BigInt::GetString() const CalcUnoApiTest::CalcUnoApiTest(rtl::OUString const&) Chart2ExportTest::testFdo74115WallGradientFill() ComboBox::GetMRUCount() const |