summaryrefslogtreecommitdiff
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
commit28023e936e58bd4f438a2caa6b9d167e039f928c (patch)
tree2239fe9884bfd6009de4b12cd19447728b617cbc
parentbc6a54572b5ad7ee33d79776d1284e21dd4c9d79 (diff)
callcatcher: unused methods
-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 e88d6dbc7..a7e2dc76e 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 29cede88b..c921ac7eb 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: */