summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/biffhelper.cxx
diff options
context:
space:
mode:
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 )