summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-27 23:57:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-27 23:57:02 +0100
commit28e79aa91e502fbabee1198193a3cb4f125f330a (patch)
tree20609d97bea570035e9faf025aff8b9f083fef9d
parent3be39b7ee512114f7a9e7db30175564aaeb723b5 (diff)
remove unused ByteString::CreateFromFloat
-rw-r--r--tools/inc/tools/string.hxx1
-rw-r--r--tools/source/string/tstring.cxx10
2 files changed, 0 insertions, 11 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx
index 75c2a6dcd7f0..366dd6909198 100644
--- a/tools/inc/tools/string.hxx
+++ b/tools/inc/tools/string.hxx
@@ -205,7 +205,6 @@ public:
static ByteString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 );
static ByteString CreateFromInt64( sal_Int64 n, sal_Int16 nRadix = 10 );
- static ByteString CreateFromFloat( float f );
static const ByteString& EmptyString();
sal_Int32 ToInt32() const;
sal_Int64 ToInt64() const;
diff --git a/tools/source/string/tstring.cxx b/tools/source/string/tstring.cxx
index f2af016158fe..fb5cafa357c5 100644
--- a/tools/source/string/tstring.cxx
+++ b/tools/source/string/tstring.cxx
@@ -115,16 +115,6 @@ ByteString ByteString::CreateFromInt64( sal_Int64 n, sal_Int16 nRadix )
// -----------------------------------------------------------------------
-ByteString ByteString::CreateFromFloat( float f )
-{
- sal_Char aBuf[RTL_STR_MAX_VALUEOFFLOAT];
- BOOST_STATIC_ASSERT(RTL_STR_MAX_VALUEOFFLOAT <= STRING_MAXLEN);
- return ByteString(
- aBuf, static_cast< xub_StrLen >(rtl_str_valueOfFloat( aBuf, f )) );
-}
-
-// -----------------------------------------------------------------------
-
namespace { struct Empty : public rtl::Static< const ByteString, Empty> {}; }
const ByteString& ByteString::EmptyString()
{