summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-26 14:13:25 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-26 14:14:06 +0200
commit182f77a46d755b90fb7c79a4e80666beff47cf0c (patch)
treea4b4c8f0f3c3a1ad7715fe69275e891daa228b58
parentc914d7d5cc37e86d15ff82027273b884e152163e (diff)
comphelper: ConstAsciiString is now unused
Change-Id: Ifad05cfc84b476501948f31ff65aa5d321dd6fdd
-rw-r--r--include/comphelper/string.hxx30
1 files changed, 0 insertions, 30 deletions
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx
index 85b0816b895e..e244c3622e4f 100644
--- a/include/comphelper/string.hxx
+++ b/include/comphelper/string.hxx
@@ -429,38 +429,8 @@ COMPHELPER_DLLPUBLIC inline bool isalnumAscii(sal_Unicode c)
return isalphaAscii(c) || isdigitAscii(c);
}
-//============================================================
-//= a helper for static ascii pseudo-unicode strings
-//============================================================
-struct COMPHELPER_DLLPUBLIC ConstAsciiString
-{
- const sal_Char* ascii;
- sal_Int32 length;
-
- operator OUString() const
- {
- return OUString(ascii, length, RTL_TEXTENCODING_ASCII_US);
- }
-};
-
} }
-#ifdef RTL_FAST_STRING
-// TODO The whole ConstAsciiString class should probably be dumped
-// and replaced with plain 'const char[]'.
-namespace rtl
-{
-template<>
-struct ToStringHelper< comphelper::string::ConstAsciiString >
- {
- static int length( const comphelper::string::ConstAsciiString& str ) { return str.length; }
- static sal_Unicode* addData( sal_Unicode* buffer, const comphelper::string::ConstAsciiString& str ) { return addDataLiteral( buffer, str.ascii, str.length ); }
- static const bool allowOStringConcat = false;
- static const bool allowOUStringConcat = true;
- };
-}
-#endif
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */