summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/biffhelper.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-20 20:35:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-20 20:35:53 +0000
commit08fd513e715209a1295de2e65cbdb47108908826 (patch)
treedca2552b90246319753e34e91afa1e534e9c6043 /sc/source/filter/oox/biffhelper.cxx
parent144f554dfde4133e949decbc2b41d881853cf943 (diff)
callcatcher: update list
Diffstat (limited to 'sc/source/filter/oox/biffhelper.cxx')
-rw-r--r--sc/source/filter/oox/biffhelper.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/sc/source/filter/oox/biffhelper.cxx b/sc/source/filter/oox/biffhelper.cxx
index 9ec1a9864a57..da426b606ad8 100644
--- a/sc/source/filter/oox/biffhelper.cxx
+++ b/sc/source/filter/oox/biffhelper.cxx
@@ -69,45 +69,6 @@ union DecodedDouble
inline explicit DecodedDouble( double fValue ) : mfValue( fValue ) {}
};
-bool lclCalcRkFromDouble( sal_Int32& ornRkValue, const DecodedDouble& rDecDbl )
-{
- // double
- if( (rDecDbl.maStruct.w32_parts.lsw == 0) && ((rDecDbl.maStruct.w32_parts.msw & 0x3) == 0) )
- {
- ornRkValue = static_cast< sal_Int32 >( rDecDbl.maStruct.w32_parts.msw );
- return true;
- }
-
- // integer
- double fInt = 0.0;
- double fFrac = modf( rDecDbl.mfValue, &fInt );
- if( (fFrac == 0.0) && (-536870912.0 <= fInt) && (fInt <= 536870911.0) ) // 2^29
- {
- ornRkValue = static_cast< sal_Int32 >( fInt );
- ornRkValue <<= 2;
- ornRkValue |= BIFF_RK_INTFLAG;
- return true;
- }
-
- return false;
-}
-
-bool lclCalcRkFromDouble( sal_Int32& ornRkValue, double fValue )
-{
- DecodedDouble aDecDbl( fValue );
- if( lclCalcRkFromDouble( ornRkValue, aDecDbl ) )
- return true;
-
- aDecDbl.mfValue *= 100.0;
- if( lclCalcRkFromDouble( ornRkValue, aDecDbl ) )
- {
- ornRkValue |= BIFF_RK_100FLAG;
- return true;
- }
-
- return false;
-}
-
// ----------------------------------------------------------------------------
void lclImportImgDataDib( StreamDataSequence& orDataSeq, BiffInputStream& rStrm, sal_Int32 nBytes, BiffType eBiff )