summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-28 08:31:06 +0200
committerNoel Grandin <noel@peralex.com>2014-02-28 08:33:14 +0200
commit2dcc6a491a308b65172b509e895942d8b1b9c536 (patch)
tree17a74a7e2578a370ef32bcd92222ec4f428f0438 /tools
parentf6d97d00cd0c8d710bce614f7e557db2bc6d2f77 (diff)
remove unused code BigInt::GetString()
Change-Id: I0e1b1e07103b7aafd0b6691e0fcf0d2c8f612ac8
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/bigint.cxx43
1 files changed, 0 insertions, 43 deletions
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 )