Kaydet (Commit) 998eb403 authored tarafından Caolán McNamara's avatar Caolán McNamara

GetByteString unused

üst bf8030e4
......@@ -98,7 +98,6 @@ public:
operator sal_uIntPtr() const;
void Set( sal_Bool bSet ) { bIsSet = bSet; }
ByteString GetByteString() const;
UniString GetString() const;
sal_Bool IsSet() const { return bIsSet; }
......
......@@ -686,49 +686,6 @@ BigInt::operator double() const
// -----------------------------------------------------------------------
ByteString BigInt::GetByteString() const
{
ByteString aString;
if ( !bIsBig )
aString = ByteString::CreateFromInt32( nVal );
else
{
BigInt aTmp( *this );
BigInt a1000000000( 1000000000L );
aTmp.Abs();
do
{
BigInt a = aTmp;
a %= a1000000000;
aTmp /= a1000000000;
ByteString aStr = aString;
if ( a.nVal < 100000000L )
{ // leading 0s
aString = ByteString::CreateFromInt32( a.nVal + 1000000000L );
aString.Erase( 0, 1 );
}
else
aString = ByteString::CreateFromInt32( a.nVal );
aString += aStr;
}
while( aTmp.bIsBig );
ByteString aStr = aString;
if ( bIsNeg )
aString = ByteString::CreateFromInt32( -aTmp.nVal );
else
aString = ByteString::CreateFromInt32( aTmp.nVal );
aString += aStr;
}
return aString;
}
// -----------------------------------------------------------------------
UniString BigInt::GetString() const
{
UniString aString;
......
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