@ -218,9 +218,6 @@ hb_buffer_t::get_scratch_buffer (unsigned int *size)
void
hb_buffer_t : : reset ( )
{
if ( unlikely ( hb_object_is_immutable ( this ) ) )
return ;
hb_unicode_funcs_destroy ( unicode ) ;
unicode = hb_unicode_funcs_reference ( hb_unicode_funcs_get_default ( ) ) ;
flags = HB_BUFFER_FLAG_DEFAULT ;
@ -233,9 +230,6 @@ hb_buffer_t::reset ()
void
hb_buffer_t : : clear ( )
{
if ( unlikely ( hb_object_is_immutable ( this ) ) )
return ;
hb_segment_properties_t default_props = HB_SEGMENT_PROPERTIES_DEFAULT ;
props = default_props ;
scratch_flags = HB_BUFFER_SCRATCH_FLAG_DEFAULT ;
@ -290,9 +284,6 @@ hb_buffer_t::add_info (const hb_glyph_info_t &glyph_info)
void
hb_buffer_t : : remove_output ( )
{
if ( unlikely ( hb_object_is_immutable ( this ) ) )
return ;
have_output = false ;
have_positions = false ;
@ -303,9 +294,6 @@ hb_buffer_t::remove_output ()
void
hb_buffer_t : : clear_output ( )
{
if ( unlikely ( hb_object_is_immutable ( this ) ) )
return ;
have_output = true ;
have_positions = false ;
@ -316,9 +304,6 @@ hb_buffer_t::clear_output ()
void
hb_buffer_t : : clear_positions ( )
{
if ( unlikely ( hb_object_is_immutable ( this ) ) )
return ;
have_output = false ;
have_positions = true ;
@ -1226,6 +1211,9 @@ hb_buffer_get_invisible_glyph (hb_buffer_t *buffer)
void
hb_buffer_reset ( hb_buffer_t * buffer )
{
if ( unlikely ( hb_object_is_immutable ( buffer ) ) )
return ;
buffer - > reset ( ) ;
}
@ -1241,6 +1229,9 @@ hb_buffer_reset (hb_buffer_t *buffer)
void
hb_buffer_clear_contents ( hb_buffer_t * buffer )
{
if ( unlikely ( hb_object_is_immutable ( buffer ) ) )
return ;
buffer - > clear ( ) ;
}