summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-30 10:38:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-30 11:35:57 +0100
commit593daad2162b994e6b6f2c3c135391ca3f04d0af (patch)
tree5044db8773583a6f4ea48e93aeae0fba4f136fd3 /sal
parent3533a051a623d3587db715d057fb9a3746c0bc19 (diff)
callcatcher: unused code
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/OStringBuffer/rtl_String_Utils.cxx38
-rw-r--r--sal/qa/OStringBuffer/rtl_String_Utils.hxx2
-rw-r--r--sal/qa/rtl_strings/rtl_String_Utils.cxx38
-rw-r--r--sal/qa/rtl_strings/rtl_String_Utils.hxx2
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 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
);