ber_clear() no longer needed. Removed.

This commit is contained in:
Kurt Zeilenga 1999-05-28 20:19:28 +00:00
parent 4e5ed2dffc
commit 27caa58f51

View File

@ -179,8 +179,10 @@ ber_free( BerElement *ber, int freebuf )
if ( freebuf && ber->ber_buf != NULL )
free( ber->ber_buf );
ber->ber_buf = NULL;
ber->ber_valid = LBER_UNINITIALIZED;
free( (char *) ber );
}
@ -593,18 +595,3 @@ fill_buffer:
assert( 0 ); /* ber structure is messed up ?*/
return LBER_DEFAULT;
}
void ber_clear( BerElement *ber, int freebuf )
{
assert( ber != NULL );
assert( BER_VALID( ber ) );
if ((freebuf) && (ber->ber_buf))
free( ber->ber_buf );
ber->ber_buf = NULL;
ber->ber_rwptr = NULL;
ber->ber_end = NULL;
ber->ber_valid = LBER_UNINITIALIZED;
}