[Libreoffice-commits] .: svx/source unotools/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Nov 7 04:39:40 PST 2011
svx/source/inc/clonelist.hxx | 1
svx/source/svdraw/clonelist.cxx | 5 ---
unotools/source/i18n/charclass.cxx | 53 -------------------------------------
3 files changed, 59 deletions(-)
New commits:
commit 3d223821a8a9dd83993626554041a95098f75ac5
Author: Emanuele Fia <name29 at name29-laptop.(none)>
Date: Thu Nov 3 21:29:14 2011 +0100
Removed unused code
diff --git a/svx/source/inc/clonelist.hxx b/svx/source/inc/clonelist.hxx
index 3ed9156..d7ca903 100644
--- a/svx/source/inc/clonelist.hxx
+++ b/svx/source/inc/clonelist.hxx
@@ -46,7 +46,6 @@ class CloneList
public:
void AddPair(const SdrObject* pOriginal, SdrObject* pClone);
- sal_uInt32 Count() const;
const SdrObject* GetOriginal(sal_uInt32 nIndex) const;
SdrObject* GetClone(sal_uInt32 nIndex) const;
diff --git a/svx/source/svdraw/clonelist.cxx b/svx/source/svdraw/clonelist.cxx
index 22474e5..fc7a594 100644
--- a/svx/source/svdraw/clonelist.cxx
+++ b/svx/source/svdraw/clonelist.cxx
@@ -68,11 +68,6 @@ void CloneList::AddPair(const SdrObject* pOriginal, SdrObject* pClone)
}
}
-sal_uInt32 CloneList::Count() const
-{
- return maOriginalList.size();
-}
-
const SdrObject* CloneList::GetOriginal(sal_uInt32 nIndex) const
{
return maOriginalList[nIndex];
diff --git a/unotools/source/i18n/charclass.cxx b/unotools/source/i18n/charclass.cxx
index 5fcd2ae..fad144d 100644
--- a/unotools/source/i18n/charclass.cxx
+++ b/unotools/source/i18n/charclass.cxx
@@ -116,21 +116,6 @@ sal_Bool CharClass::isAsciiAlpha( const String& rStr )
}
-// static
-sal_Bool CharClass::isAsciiAlphaNumeric( const String& rStr )
-{
- if ( !rStr.Len() )
- return sal_False;
- register const sal_Unicode* p = rStr.GetBuffer();
- register const sal_Unicode* const pStop = p + rStr.Len();
- do
- {
- if ( !isAsciiAlphaNumeric( *p ) )
- return sal_False;
- } while ( ++p < pStop );
- return sal_True;
-}
-
sal_Bool CharClass::isAlpha( const String& rStr, xub_StrLen nPos ) const
{
@@ -154,22 +139,6 @@ sal_Bool CharClass::isAlpha( const String& rStr, xub_StrLen nPos ) const
}
-sal_Bool CharClass::isAlpha( const String& rStr ) const
-{
- try
- {
- if ( xCC.is() )
- return isAlphaType( xCC->getStringType( rStr, 0, rStr.Len(), getLocale() ) );
- else
- return sal_False;
- }
- catch ( const Exception& )
- {
- DBG_ERRORFILE( "isAlpha: Exception caught!" );
- return sal_False;
- }
-}
-
sal_Bool CharClass::isLetter( const String& rStr, xub_StrLen nPos ) const
{
@@ -271,23 +240,6 @@ sal_Bool CharClass::isAlphaNumeric( const String& rStr, xub_StrLen nPos ) const
}
-sal_Bool CharClass::isAlphaNumeric( const String& rStr ) const
-{
- try
- {
- if ( xCC.is() )
- return isAlphaNumericType( xCC->getStringType( rStr, 0, rStr.Len(), getLocale() ) );
- else
- return sal_False;
- }
- catch ( const Exception& )
- {
- DBG_ERRORFILE( "isAlphaNumeric: Exception caught!" );
- return sal_False;
- }
-}
-
-
sal_Bool CharClass::isLetterNumeric( const String& rStr, xub_StrLen nPos ) const
{
sal_Unicode c = rStr.GetChar( nPos );
@@ -336,11 +288,6 @@ String CharClass::toUpper( const String& rStr, xub_StrLen nPos, xub_StrLen nCoun
return toUpper_rtl(rStr, nPos, nCount);
}
-void CharClass::toLower( rtl::OUString& rStr ) const
-{
- rStr = toLower_rtl(rStr, 0, rStr.getLength());
-}
-
String CharClass::toLower( const String& rStr, xub_StrLen nPos, xub_StrLen nCount ) const
{
return toLower_rtl(::rtl::OUString(rStr), nPos, nCount);
More information about the Libreoffice-commits
mailing list