diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-02-26 20:45:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-27 09:45:57 +0000 |
commit | b36d555440b86d8293b188e4d99ec8682a2139a5 (patch) | |
tree | 85fba385e1c021c3b2d86bc8922c5980b4abe9ff /tools | |
parent | d6100ba273e7d73cc4b00a378ce5bad49559943b (diff) |
drop UniString::CreateFromInt64
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/string.hxx | 1 | ||||
-rw-r--r-- | tools/source/string/tustring.cxx | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx index a4b3e46d2944..1cd1c9a35583 100644 --- a/tools/inc/tools/string.hxx +++ b/tools/inc/tools/string.hxx @@ -184,7 +184,6 @@ public: static UniString CreateFromAscii( const sal_Char* pAsciiStr, xub_StrLen nLen ); static UniString CreateFromInt32( sal_Int32 n, sal_Int16 nRadix = 10 ); - static UniString CreateFromInt64( sal_Int64 n, sal_Int16 nRadix = 10 ); static const UniString& EmptyString(); sal_Int32 ToInt32() const; sal_Int64 ToInt64() const; diff --git a/tools/source/string/tustring.cxx b/tools/source/string/tustring.cxx index 4bb515e30ad8..53f5473eb29a 100644 --- a/tools/source/string/tustring.cxx +++ b/tools/source/string/tustring.cxx @@ -79,17 +79,6 @@ UniString UniString::CreateFromInt32( sal_Int32 n, sal_Int16 nRadix ) // ----------------------------------------------------------------------- -UniString UniString::CreateFromInt64( sal_Int64 n, sal_Int16 nRadix ) -{ - sal_Unicode aBuf[RTL_USTR_MAX_VALUEOFINT64]; - BOOST_STATIC_ASSERT(RTL_USTR_MAX_VALUEOFINT64 <= STRING_MAXLEN); - return UniString( - aBuf, - static_cast< xub_StrLen >(rtl_ustr_valueOfInt64( aBuf, n, nRadix )) ); -} - -// ----------------------------------------------------------------------- - namespace { struct Empty : public rtl::Static< const UniString, Empty> {}; } const UniString& UniString::EmptyString() { |