Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


---
 i18nutil/inc/i18nutil/unicode.hxx   |    1 -
 i18nutil/source/utility/unicode.cxx |   64 -----------------------------------
 unusedcode.easy                     |    1 -
 3 files changed, 0 insertions(+), 66 deletions(-)

diff --git a/i18nutil/inc/i18nutil/unicode.hxx b/i18nutil/inc/i18nutil/unicode.hxx
index 7fce041..f9ff6e1 100644
--- a/i18nutil/inc/i18nutil/unicode.hxx
+++ b/i18nutil/inc/i18nutil/unicode.hxx
@@ -48,7 +48,6 @@ public:
     static sal_Unicode SAL_CALL getUnicodeScriptStart(com::sun::star::i18n::UnicodeScript type);
     static sal_Unicode SAL_CALL getUnicodeScriptEnd(com::sun::star::i18n::UnicodeScript type);
     static sal_uInt8 SAL_CALL getUnicodeDirection( const sal_Unicode ch );
-    static sal_Int32 SAL_CALL getCharType( const sal_Unicode ch );
     static sal_Bool SAL_CALL isUpper( const sal_Unicode ch);
     static sal_Bool SAL_CALL isLower( const sal_Unicode ch);
     static sal_Bool SAL_CALL isDigit( const sal_Unicode ch);
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx
index 056e78a..dcc5b36 100644
--- a/i18nutil/source/utility/unicode.cxx
+++ b/i18nutil/source/utility/unicode.cxx
@@ -425,70 +425,6 @@ sal_Bool SAL_CALL unicode::isWhiteSpace( const sal_Unicode ch) {
     return (ch != 0xa0 && isSpace(ch)) || (ch <= 0x1F && (bit(ch) & (CONTROLSPACE)));
 }
 
-sal_Int32 SAL_CALL unicode::getCharType( const sal_Unicode ch )
-{
-    using namespace ::com::sun::star::i18n::KCharacterType;
-
-    switch ( getUnicodeType( ch ) ) {
-    // Upper
-    case UnicodeType::UPPERCASE_LETTER :
-        return UPPER|LETTER|PRINTABLE|BASE_FORM;
-
-    // Lower
-    case UnicodeType::LOWERCASE_LETTER :
-        return LOWER|LETTER|PRINTABLE|BASE_FORM;
-
-    // Title
-    case UnicodeType::TITLECASE_LETTER :
-        return TITLE_CASE|LETTER|PRINTABLE|BASE_FORM;
-
-    // Letter
-    case UnicodeType::MODIFIER_LETTER :
-    case UnicodeType::OTHER_LETTER :
-        return LETTER|PRINTABLE|BASE_FORM;
-
-    // Digit
-    case UnicodeType::DECIMAL_DIGIT_NUMBER:
-    case UnicodeType::LETTER_NUMBER:
-    case UnicodeType::OTHER_NUMBER:
-        return DIGIT|PRINTABLE|BASE_FORM;
-
-    // Base
-    case UnicodeType::NON_SPACING_MARK:
-    case UnicodeType::ENCLOSING_MARK:
-    case UnicodeType::COMBINING_SPACING_MARK:
-        return BASE_FORM|PRINTABLE;
-
-    // Print
-    case UnicodeType::SPACE_SEPARATOR:
-
-    case UnicodeType::DASH_PUNCTUATION:
-    case UnicodeType::INITIAL_PUNCTUATION:
-    case UnicodeType::FINAL_PUNCTUATION:
-    case UnicodeType::CONNECTOR_PUNCTUATION:
-    case UnicodeType::OTHER_PUNCTUATION:
-
-    case UnicodeType::MATH_SYMBOL:
-    case UnicodeType::CURRENCY_SYMBOL:
-    case UnicodeType::MODIFIER_SYMBOL:
-    case UnicodeType::OTHER_SYMBOL:
-        return PRINTABLE;
-
-    // Control
-    case UnicodeType::CONTROL:
-    case UnicodeType::FORMAT:
-        return CONTROL;
-
-    case UnicodeType::LINE_SEPARATOR:
-    case UnicodeType::PARAGRAPH_SEPARATOR:
-        return CONTROL|PRINTABLE;
-
-    // for all others
-    default:
-        return 0;
-    }
-}
-
 sal_Int16 SAL_CALL unicode::getScriptClassFromUScriptCode(UScriptCode eScript)
 {
     //See unicode/uscript.h
diff --git a/unusedcode.easy b/unusedcode.easy
index ae4ffad..743ba38 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1527,7 +1527,6 @@ ucbhelper::Content::getPropertyValues(com::sun::star::uno::Sequence<int> 
const&)
 ucbhelper::Content::insertNewContent(rtl::OUString const&, com::sun::star::uno::Sequence<int> 
const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, 
com::sun::star::uno::Reference<com::sun::star::io::XInputStream> const&, ucbhelper::Content&)
 
ucbhelper::ContentBroker::ContentBroker(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
 const&, std::__debug::vector<ucbhelper::ContentProviderData, 
std::allocator<ucbhelper::ContentProviderData> > const&)
 ucbhelper::SimpleCertificateValidationRequest::getResponse() const
-unicode::getCharType(unsigned short)
 unographic::GraphicDescriptor::isValid() const
 utl::NodeValueAccessor::bind(com::sun::star::uno::Any*)
 utl::OConfigurationNode::appendNode(rtl::OUString const&, utl::OConfigurationNode const&) const
-- 
1.7.9


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.