diff --git a/vm/types.c b/vm/types.c index adfdea41a5..adf8b1d4a6 100755 --- a/vm/types.c +++ b/vm/types.c @@ -283,19 +283,6 @@ DEFINE_PRIMITIVE(resize_byte_array) dpush(tag_object(reallot_byte_array(array,capacity))); } -F_BYTE_ARRAY *growable_byte_array_add(F_BYTE_ARRAY *result, CELL elt, CELL *result_count) -{ - if(*result_count == byte_array_capacity(result)) - { - result = reallot_byte_array(result,*result_count * 2); - } - - bput(BREF(result,*result_count),elt); - *result_count++; - - return result; -} - F_BYTE_ARRAY *growable_byte_array_append(F_BYTE_ARRAY *result, void *elts, CELL len, CELL *result_count) { CELL new_size = *result_count + len; diff --git a/vm/types.h b/vm/types.h index bbf7fb203d..34301964a1 100755 --- a/vm/types.h +++ b/vm/types.h @@ -212,11 +212,6 @@ F_ARRAY *growable_array_append(F_ARRAY *result, F_ARRAY *elts, CELL *result_coun CELL result##_count = 0; \ CELL result = tag_object(allot_byte_array(100)) -F_ARRAY *growable_byte_array_add(F_BYTE_ARRAY *result, CELL elt, CELL *result_count); - -#define GROWABLE_BYTE_ARRAY_ADD(result,elt) \ - result = tag_object(growable_byte_array_add(untag_object(result),elt,&result##_count)) - F_ARRAY *growable_byte_array_append(F_BYTE_ARRAY *result, void *elts, CELL len, CELL *result_count); #define GROWABLE_BYTE_ARRAY_APPEND(result,elts,len) \