diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/string.hxx | 1 | ||||
-rw-r--r-- | tools/source/string/tstring.cxx | 13 |
2 files changed, 0 insertions, 14 deletions
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<rtl_String*>(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 <string.h> -#include "boost/static_assert.hpp" - #include "osl/diagnose.h" #include <osl/interlck.h> #include <rtl/alloc.h> @@ -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 ); |