From 182f77a46d755b90fb7c79a4e80666beff47cf0c Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 26 Apr 2013 14:13:25 +0200 Subject: [PATCH] comphelper: ConstAsciiString is now unused Change-Id: Ifad05cfc84b476501948f31ff65aa5d321dd6fdd --- include/comphelper/string.hxx | 30 ------------------------------ 1 file changed, 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: */