summaryrefslogtreecommitdiffstats
path: root/include/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 09:46:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 10:18:16 +0100
commit00055d49f35bbabd46d00fefd395b46872ed45aa (patch)
treea0934520d82d4d0f5e00e914beb951899c8a3917 /include/basic
parent-Werror,-Wunused-private-field (diff)
downloadcore-00055d49f35bbabd46d00fefd395b46872ed45aa.tar.gz
core-00055d49f35bbabd46d00fefd395b46872ed45aa.zip
remove with_sprintf_ define
it has been this way since commit f333ee4564f7786f5f4ca501d71e660b5c366b93 Date: Wed Apr 11 11:54:30 2007 +0000 INTEGRATION: CWS hedaburemove01 (1.1.2); FILE ADDED Change-Id: I317efd9538436480a9fc3d37e748b0a51052ef80 Reviewed-on: https://gerrit.libreoffice.org/62932 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/basic')
-rw-r--r--include/basic/sbxform.hxx15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/basic/sbxform.hxx b/include/basic/sbxform.hxx
index 74253192a69b..6ef7734eb8c1 100644
--- a/include/basic/sbxform.hxx
+++ b/include/basic/sbxform.hxx
@@ -67,14 +67,6 @@
"AMPM", "Long Date", "Long Time"
*/
-/*
- There are two possibilities to get the number of digits of a number:
-
- a) use sprintf()
- b) use log10() and pow() digit
-*/
-#define with_sprintf_ // use a)
-
#include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx>
#include <basic/basicdllapi.h>
@@ -115,7 +107,6 @@ class BASIC_DLLPUBLIC SbxBasicFormater {
BASIC_DLLPRIVATE void StrRoundDigit( OUStringBuffer& sStrg, short nPos );
BASIC_DLLPRIVATE static void ParseBack( OUStringBuffer& sStrg, const OUString& sFormatStrg,
short nFormatPos );
-#ifdef with_sprintf_
// Methods for string conversion with sprintf():
BASIC_DLLPRIVATE void InitScan( double _dNum );
BASIC_DLLPRIVATE void InitExp( double _dNewExp );
@@ -123,12 +114,6 @@ class BASIC_DLLPUBLIC SbxBasicFormater {
BASIC_DLLPRIVATE short GetDigitAtPosExpScan( double dNewExponent, short nPos,
bool& bFoundFirstDigit );
BASIC_DLLPRIVATE short GetDigitAtPosExpScan( short nPos, bool& bFoundFirstDigit );
-#else
- // Methods for direct 'calculation' with log10() and pow():
- BASIC_DLLPRIVATE short GetDigitAtPos( double dNumber, short nPos, double& dNextNumber,
- bool& bFoundFirstDigit );
- BASIC_DLLPRIVATE short RoundDigit( double dNumber );
-#endif
BASIC_DLLPRIVATE static OUString GetPosFormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE static OUString GetNegFormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE static OUString Get0FormatString( const OUString& sFormatStrg, bool & bFound );