diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-30 10:38:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-30 11:35:57 +0100 |
commit | 74115c30e4c95fa3d3b70885482d20767531e83f (patch) | |
tree | 3f312c674e0f14840accdd09cf594509c2758fe9 /sal | |
parent | 1a2912eed9980d7ded481bc60a81597b0c699481 (diff) |
callcatcher: unused code
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/OStringBuffer/rtl_String_Utils.cxx | 38 | ||||
-rw-r--r-- | sal/qa/OStringBuffer/rtl_String_Utils.hxx | 2 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_String_Utils.cxx | 38 | ||||
-rw-r--r-- | sal/qa/rtl_strings/rtl_String_Utils.hxx | 2 |
4 files changed, 0 insertions, 80 deletions
diff --git a/sal/qa/OStringBuffer/rtl_String_Utils.cxx b/sal/qa/OStringBuffer/rtl_String_Utils.cxx index 68d3534ccef1..7a3da5a2e701 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 87c97174b71b..dc0f16d9d8b1 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 9f882f796a7c..b37cd2dc7ba3 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 7c059ae57f27..d07e40e7af09 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 ); |