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


This patch removes unused code as listed in unusedcode.easy
From 15c5ffc7456b5155dfb634110daa518d6dde8535 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Thu, 9 Feb 2012 20:45:46 +0100
Subject: [PATCH] Remove unused code.

---
 comphelper/inc/comphelper/string.hxx |   30 ------------------------------
 comphelper/source/misc/string.cxx    |   15 ---------------
 unusedcode.easy                      |    3 ---
 3 files changed, 0 insertions(+), 48 deletions(-)
 mode change 100644 => 100755 unusedcode.easy

diff --git a/comphelper/inc/comphelper/string.hxx b/comphelper/inc/comphelper/string.hxx
index e3d11d9..3fba475 100644
--- a/comphelper/inc/comphelper/string.hxx
+++ b/comphelper/inc/comphelper/string.hxx
@@ -593,16 +593,6 @@ COMPHELPER_DLLPUBLIC bool isdigitAsciiString(const rtl::OUString &rString);
  */
 COMPHELPER_DLLPUBLIC bool isalnumAsciiString(const rtl::OString &rString);
 
-/** Determine if an OUString contains solely ASCII alphanumeric chars/digits
-
-    @param rString  An OUString
-
-    @return         false if string contains any characters outside
-                    the ASCII 'a'-'z', 'A'-'Z' and '0'-'9' ranges
-                    true otherwise, including for empty string
- */
-COMPHELPER_DLLPUBLIC bool isalnumAsciiString(const rtl::OUString &rString);
-
 /** Determine if an OString contains solely ASCII lower-case chars
 
     @param rString  An OString
@@ -613,16 +603,6 @@ COMPHELPER_DLLPUBLIC bool isalnumAsciiString(const rtl::OUString &rString);
  */
 COMPHELPER_DLLPUBLIC bool islowerAsciiString(const rtl::OString &rString);
 
-/** Determine if an OUString contains solely ASCII lower-case chars
-
-    @param rString  An OUString
-
-    @return         false if string contains any characters outside
-                    the ASCII 'a'-'z' ranges
-                    true otherwise, including for empty string
- */
-COMPHELPER_DLLPUBLIC bool islowerAsciiString(const rtl::OUString &rString);
-
 /** Determine if an OString contains solely ASCII upper-case chars
 
     @param rString  An OString
@@ -633,16 +613,6 @@ COMPHELPER_DLLPUBLIC bool islowerAsciiString(const rtl::OUString &rString);
  */
 COMPHELPER_DLLPUBLIC bool isupperAsciiString(const rtl::OString &rString);
 
-/** Determine if an OUString contains solely ASCII upper-case chars
-
-    @param rString  An OUString
-
-    @return         false if string contains any characters outside
-                    the ASCII 'A'-'Z' ranges
-                    true otherwise, including for empty string
- */
-COMPHELPER_DLLPUBLIC bool isupperAsciiString(const rtl::OUString &rString);
-
 COMPHELPER_DLLPUBLIC inline bool isdigitAscii(sal_Unicode c)
 {
     return ((c >= '0') && (c <= '9'));
diff --git a/comphelper/source/misc/string.cxx b/comphelper/source/misc/string.cxx
index 13a1236..712d903 100644
--- a/comphelper/source/misc/string.cxx
+++ b/comphelper/source/misc/string.cxx
@@ -516,11 +516,6 @@ bool isalnumAsciiString(const rtl::OString &rString)
     return tmpl_is_OPER_AsciiString<isalnumAscii>(rString);
 }
 
-bool isalnumAsciiString(const rtl::OUString &rString)
-{
-    return tmpl_is_OPER_AsciiString<isalnumAscii>(rString);
-}
-
 bool isdigitAsciiString(const rtl::OString &rString)
 {
     return tmpl_is_OPER_AsciiString<isdigitAscii>(rString);
@@ -536,21 +531,11 @@ bool islowerAsciiString(const rtl::OString &rString)
     return tmpl_is_OPER_AsciiString<islowerAscii>(rString);
 }
 
-bool islowerAsciiString(const rtl::OUString &rString)
-{
-    return tmpl_is_OPER_AsciiString<islowerAscii>(rString);
-}
-
 bool isupperAsciiString(const rtl::OString &rString)
 {
     return tmpl_is_OPER_AsciiString<isupperAscii>(rString);
 }
 
-bool isupperAsciiString(const rtl::OUString &rString)
-{
-    return tmpl_is_OPER_AsciiString<isupperAscii>(rString);
-}
-
 } }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unusedcode.easy b/unusedcode.easy
old mode 100644
new mode 100755
index d6d3b58..0d4d7da
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -1182,9 +1182,6 @@ 
comphelper::detail::ConfigurationWrapper::getGroupReadWrite(boost::shared_ptr<co
 comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue(rtl::OUString const&) const
 
comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue(boost::shared_ptr<comphelper::ConfigurationChanges>
 const&, rtl::OUString const&, com::sun::star::uno::Any const&) const
 comphelper::findProperty(com::sun::star::beans::Property&, 
com::sun::star::uno::Sequence<com::sun::star::beans::Property>&, rtl::OUString const&)
-comphelper::string::isalnumAsciiString(rtl::OUString const&)
-comphelper::string::islowerAsciiString(rtl::OUString const&)
-comphelper::string::isupperAsciiString(rtl::OUString const&)
 connectivity::OKeyValue::OKeyValue()
 connectivity::ORowSetValue::setFromDouble(double const&, int)
 connectivity::OSQLInternalNode::OSQLInternalNode(unsigned short const*, connectivity::SQLNodeType, 
unsigned int)
-- 
1.7.7.6


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.