summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tools/string.hxx1
-rw-r--r--tools/source/string/strucvt.cxx19
2 files changed, 0 insertions, 20 deletions
diff --git a/include/tools/string.hxx b/include/tools/string.hxx
index 3933595b6e2f..9efa5d75b1b0 100644
--- a/include/tools/string.hxx
+++ b/include/tools/string.hxx
@@ -101,7 +101,6 @@ private:
UniString& Append( const UniString& rStr );
public:
UniString();
- UniString( const ResId& rResId );
UniString( const UniString& rStr );
UniString( const OUString& rStr );
~UniString();
diff --git a/tools/source/string/strucvt.cxx b/tools/source/string/strucvt.cxx
index 9ed5a2063fb4..be8c72de7920 100644
--- a/tools/source/string/strucvt.cxx
+++ b/tools/source/string/strucvt.cxx
@@ -59,25 +59,6 @@ UniString& UniString::Assign( const OUString& rStr )
#include <tools/rc.hxx>
#include <tools/rcid.h>
-UniString::UniString( const ResId& rResId )
- : mpData(NULL)
-{
- OUString sStr(rResId.toString());
-
- OSL_ENSURE(sStr.pData->length < STRING_MAXLEN,
- "Overflowing OUString -> UniString cut to zero length");
-
- if (sStr.pData->length < STRING_MAXLEN)
- {
- mpData = reinterpret_cast< UniStringData * >(sStr.pData);
- STRING_ACQUIRE((STRING_TYPE *)mpData);
- }
- else
- {
- STRING_NEW((STRING_TYPE **)&mpData);
- }
-}
-
OUString ResId::toString() const
{
SetRT( RSC_STRING );