Kaydet (Commit) 74115c30 authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: unused code

üst 1a2912ee
......@@ -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
)
......
......@@ -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
);
......
......@@ -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
)
......
......@@ -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
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment