From 28e79aa91e502fbabee1198193a3cb4f125f330a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 27 Jun 2011 23:57:02 +0100 Subject: remove unused ByteString::CreateFromFloat --- tools/inc/tools/string.hxx | 1 - tools/source/string/tstring.cxx | 10 ---------- 2 files changed, 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() { -- cgit