From 593daad2162b994e6b6f2c3c135391ca3f04d0af Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 30 Jun 2011 10:38:01 +0100 Subject: callcatcher: unused code --- sal/qa/OStringBuffer/rtl_String_Utils.cxx | 38 ------------------------------- sal/qa/OStringBuffer/rtl_String_Utils.hxx | 2 -- sal/qa/rtl_strings/rtl_String_Utils.cxx | 38 ------------------------------- sal/qa/rtl_strings/rtl_String_Utils.hxx | 2 -- 4 files changed, 80 deletions(-) (limited to 'sal') diff --git a/sal/qa/OStringBuffer/rtl_String_Utils.cxx b/sal/qa/OStringBuffer/rtl_String_Utils.cxx index f4445fa0d..b722a8242 100644 --- a/sal/qa/OStringBuffer/rtl_String_Utils.cxx +++ b/sal/qa/OStringBuffer/rtl_String_Utils.cxx @@ -286,44 +286,6 @@ sal_uInt32 UStringLen( const sal_Unicode *pUStr ) //------------------------------------------------------------------------ -sal_Bool AStringIsValid( const sal_Char *pAStr ) -{ - if ( pAStr != NULL ) - { - sal_uInt32 nLen = AStringLen( pAStr ); - 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 - } // if - - return sal_True; -} // AStringIsValid - -//------------------------------------------------------------------------ - sal_Bool AStringNIsValid( const sal_Char *pAStr, const sal_uInt32 nStrLen ) diff --git a/sal/qa/OStringBuffer/rtl_String_Utils.hxx b/sal/qa/OStringBuffer/rtl_String_Utils.hxx index d9770d3fc..558c963f4 100644 --- a/sal/qa/OStringBuffer/rtl_String_Utils.hxx +++ b/sal/qa/OStringBuffer/rtl_String_Utils.hxx @@ -76,8 +76,6 @@ sal_Bool AStringToDoubleCompare ( const sal_Char *pStr, //------------------------------------------------------------------------ -sal_Bool AStringIsValid( const sal_Char *pAStr ); - sal_Bool AStringNIsValid( const sal_Char *pAStr, const sal_uInt32 nStrLen ); diff --git a/sal/qa/rtl_strings/rtl_String_Utils.cxx b/sal/qa/rtl_strings/rtl_String_Utils.cxx index 2250d98f7..acc2dbfaa 100644 --- a/sal/qa/rtl_strings/rtl_String_Utils.cxx +++ b/sal/qa/rtl_strings/rtl_String_Utils.cxx @@ -263,44 +263,6 @@ sal_uInt32 UStringLen( const sal_Unicode *pUStr ) //------------------------------------------------------------------------ -sal_Bool AStringIsValid( const sal_Char *pAStr ) -{ - if ( pAStr != NULL ) - { - sal_uInt32 nLen = AStringLen( pAStr ); - 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 - } // if - - return sal_True; -} // AStringIsValid - -//------------------------------------------------------------------------ - sal_Bool AStringNIsValid( const sal_Char *pAStr, const sal_uInt32 nStrLen ) diff --git a/sal/qa/rtl_strings/rtl_String_Utils.hxx b/sal/qa/rtl_strings/rtl_String_Utils.hxx index be4083bd7..7c7f02562 100644 --- a/sal/qa/rtl_strings/rtl_String_Utils.hxx +++ b/sal/qa/rtl_strings/rtl_String_Utils.hxx @@ -75,8 +75,6 @@ sal_Bool AStringToDoubleCompare ( const sal_Char *pStr, //------------------------------------------------------------------------ -sal_Bool AStringIsValid( const sal_Char *pAStr ); - sal_Bool AStringNIsValid( const sal_Char *pAStr, const sal_uInt32 nStrLen ); -- cgit v1.2.3