From d4d26018402aaa75fcb6524f5c7d99fcd9c5be45 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 31 Jul 2011 15:47:15 +0100 Subject: ditch ByteString::CreateFromInt32 --- tools/inc/tools/string.hxx | 1 - tools/source/string/tstring.cxx | 13 ------------- 2 files changed, 14 deletions(-) (limited to 'tools') diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx index c405c41ac860..33611b195aff 100644 --- a/tools/inc/tools/string.hxx +++ b/tools/inc/tools/string.hxx @@ -203,7 +203,6 @@ public: return rtl::OString (reinterpret_cast(mpData)); } - static ByteString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 ); sal_Int32 ToInt32() const; sal_Int64 ToInt64() const; diff --git a/tools/source/string/tstring.cxx b/tools/source/string/tstring.cxx index e3675c855e08..509bc6270b7e 100644 --- a/tools/source/string/tstring.cxx +++ b/tools/source/string/tstring.cxx @@ -31,8 +31,6 @@ #include -#include "boost/static_assert.hpp" - #include "osl/diagnose.h" #include #include @@ -92,17 +90,6 @@ xub_StrLen ImplStringLen( const sal_Unicode* pStr ) // ----------------------------------------------------------------------- -ByteString ByteString::CreateFromInt32( sal_Int32 n, sal_Int16 nRadix ) -{ - sal_Char aBuf[RTL_STR_MAX_VALUEOFINT32]; - BOOST_STATIC_ASSERT(RTL_STR_MAX_VALUEOFINT32 <= STRING_MAXLEN); - return ByteString( - aBuf, - static_cast< xub_StrLen >(rtl_str_valueOfInt32( aBuf, n, nRadix )) ); -} - -// ----------------------------------------------------------------------- - sal_Int32 ByteString::ToInt32() const { DBG_CHKTHIS( ByteString, DbgCheckByteString ); -- cgit