summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-09 23:54:48 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-11 09:06:39 +0100
commit14c8553c1630de914fef50fcc9178bb8f47c140c (patch)
tree2fd894597b30298586c912bf21bf01727284e261 /sal
parentfd2e631d587fb9dc9260cbcb6ca5f40512cd15a7 (diff)
callcatcher: unused methods
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/OStringBuffer/rtl_String_Utils.cxx101
-rw-r--r--sal/qa/rtl_strings/rtl_String_Utils.cxx101
2 files changed, 0 insertions, 202 deletions
diff --git a/sal/qa/OStringBuffer/rtl_String_Utils.cxx b/sal/qa/OStringBuffer/rtl_String_Utils.cxx
index 61bc11636b47..a997ba80722d 100644
--- a/sal/qa/OStringBuffer/rtl_String_Utils.cxx
+++ b/sal/qa/OStringBuffer/rtl_String_Utils.cxx
@@ -231,43 +231,6 @@ sal_uInt32 UStringLen( const sal_Unicode *pUStr )
//------------------------------------------------------------------------
-sal_Bool AStringNIsValid( const sal_Char *pAStr,
- const sal_uInt32 nStrLen
- )
-{
- sal_uInt32 nLen = nStrLen;
- sal_uChar uChar = 0;
-
- while ( *pAStr )
- {
- uChar = (unsigned char)*pAStr;
-
- if ( uChar > 127 )
- {
- return sal_False;
- } // if
-
- pAStr++;
-
- // Since we are dealing with unsigned integers
- // we want to make sure that the last number is
- // indeed zero.
-
- if ( nLen > 0 )
- {
- nLen--;
- } // if
- else
- {
- break;
- } // else
- } // while
-
- return sal_True;
-} // AStringNIsValid
-
-//------------------------------------------------------------------------
-
static inline sal_Int32 ACharToUCharCompare( const sal_Unicode *pUStr,
const sal_Char *pAStr
)
@@ -281,68 +244,4 @@ static inline sal_Int32 ACharToUCharCompare( const sal_Unicode *pUStr,
return nCmp;
} // ACharToUCharCompare
-//------------------------------------------------------------------------
-
-sal_Int32 AStringToUStringCompare( const sal_Unicode *pUStr,
- const sal_Char *pAStr
- )
-{
- sal_Int32 nCmp = kErrCompareAStringToUString;
-
- if ( ( pUStr != NULL ) && ( pAStr != NULL ) )
- {
- nCmp = ACharToUCharCompare( pUStr, pAStr );
-
- while ( ( nCmp == 0 ) && ( *pAStr ) )
- {
- pUStr++;
- pAStr++;
-
- nCmp = ACharToUCharCompare( pUStr, pAStr );
- } // while
- } // if
-
- return nCmp;
-} // AStringToUStringCompare
-
-//------------------------------------------------------------------------
-
-sal_Int32 AStringToUStringNCompare( const sal_Unicode *pUStr,
- const sal_Char *pAStr,
- const sal_uInt32 nAStrCount
- )
-{
- sal_Int32 nCmp = kErrCompareNAStringToUString;
-
- if ( ( pUStr != NULL ) && ( pAStr != NULL ) )
- {
- sal_uInt32 nCount = nAStrCount;
-
- nCmp = ACharToUCharCompare( pUStr, pAStr );
-
- while ( ( nCmp == 0 ) && ( *pAStr ) && ( nCount ) )
- {
- pUStr++;
- pAStr++;
-
- nCmp = ACharToUCharCompare( pUStr, pAStr );
-
- // Since we are dealing with unsigned integers
- // we want to make sure that the last number is
- // indeed zero.
-
- if ( nCount > 0 )
- {
- nCount--;
- } // if
- else
- {
- break;
- } // else
- } // while
- } // if
-
- return nCmp;
-} // AStringToUStringNCompare
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/qa/rtl_strings/rtl_String_Utils.cxx b/sal/qa/rtl_strings/rtl_String_Utils.cxx
index 8c4cdf6fc866..fa764813e230 100644
--- a/sal/qa/rtl_strings/rtl_String_Utils.cxx
+++ b/sal/qa/rtl_strings/rtl_String_Utils.cxx
@@ -206,43 +206,6 @@ sal_uInt32 UStringLen( const sal_Unicode *pUStr )
//------------------------------------------------------------------------
-sal_Bool AStringNIsValid( const sal_Char *pAStr,
- const sal_uInt32 nStrLen
- )
-{
- sal_uInt32 nLen = nStrLen;
- sal_uChar uChar = 0;
-
- while ( ( nLen >= 0 ) && ( *pAStr ) )
- {
- uChar = (unsigned char)*pAStr;
-
- if ( uChar > 127 )
- {
- return sal_False;
- } // if
-
- pAStr++;
-
- // Since we are dealing with unsigned integers
- // we want to make sure that the last number is
- // indeed zero.
-
- if ( nLen > 0 )
- {
- nLen--;
- } // if
- else
- {
- break;
- } // else
- } // while
-
- return sal_True;
-} // AStringNIsValid
-
-//------------------------------------------------------------------------
-
static inline sal_Int32 ACharToUCharCompare( const sal_Unicode *pUStr,
const sal_Char *pAStr
)
@@ -256,68 +219,4 @@ static inline sal_Int32 ACharToUCharCompare( const sal_Unicode *pUStr,
return nCmp;
} // ACharToUCharCompare
-//------------------------------------------------------------------------
-
-sal_Int32 AStringToUStringCompare( const sal_Unicode *pUStr,
- const sal_Char *pAStr
- )
-{
- sal_Int32 nCmp = kErrCompareAStringToUString;
-
- if ( ( pUStr != NULL ) && ( pAStr != NULL ) )
- {
- nCmp = ACharToUCharCompare( pUStr, pAStr );
-
- while ( ( nCmp == 0 ) && ( *pAStr ) )
- {
- pUStr++;
- pAStr++;
-
- nCmp = ACharToUCharCompare( pUStr, pAStr );
- } // while
- } // if
-
- return nCmp;
-} // AStringToUStringCompare
-
-//------------------------------------------------------------------------
-
-sal_Int32 AStringToUStringNCompare( const sal_Unicode *pUStr,
- const sal_Char *pAStr,
- const sal_uInt32 nAStrCount
- )
-{
- sal_Int32 nCmp = kErrCompareNAStringToUString;
-
- if ( ( pUStr != NULL ) && ( pAStr != NULL ) )
- {
- sal_uInt32 nCount = nAStrCount;
-
- nCmp = ACharToUCharCompare( pUStr, pAStr );
-
- while ( ( nCmp == 0 ) && ( *pAStr ) && ( nCount ) )
- {
- pUStr++;
- pAStr++;
-
- nCmp = ACharToUCharCompare( pUStr, pAStr );
-
- // Since we are dealing with unsigned integers
- // we want to make sure that the last number is
- // indeed zero.
-
- if ( nCount > 0 )
- {
- nCount--;
- } // if
- else
- {
- break;
- } // else
- } // while
- } // if
-
- return nCmp;
-} // AStringToUStringNCompare
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */