diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-27 23:57:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-27 23:57:02 +0100 |
commit | 28e79aa91e502fbabee1198193a3cb4f125f330a (patch) | |
tree | 20609d97bea570035e9faf025aff8b9f083fef9d | |
parent | 3be39b7ee512114f7a9e7db30175564aaeb723b5 (diff) |
remove unused ByteString::CreateFromFloat
-rw-r--r-- | tools/inc/tools/string.hxx | 1 | ||||
-rw-r--r-- | tools/source/string/tstring.cxx | 10 |
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() { |