diff --git a/vm/byte_arrays.cpp b/vm/byte_arrays.cpp index 0f4591a89c..4a197d8452 100644 --- a/vm/byte_arrays.cpp +++ b/vm/byte_arrays.cpp @@ -10,10 +10,6 @@ byte_array *factorvm::allot_byte_array(cell size) return array; } -byte_array *allot_byte_array(cell size) -{ - return vm->allot_byte_array(size); -} inline void factorvm::vmprim_byte_array() { diff --git a/vm/byte_arrays.hpp b/vm/byte_arrays.hpp index 4954f31094..c1adcd95f0 100755 --- a/vm/byte_arrays.hpp +++ b/vm/byte_arrays.hpp @@ -1,8 +1,6 @@ namespace factor { -byte_array *allot_byte_array(cell size); - PRIMITIVE(byte_array); PRIMITIVE(uninitialized_byte_array); PRIMITIVE(resize_byte_array); diff --git a/vm/inlineimpls.hpp b/vm/inlineimpls.hpp index 3932177a72..90ccd8d869 100644 --- a/vm/inlineimpls.hpp +++ b/vm/inlineimpls.hpp @@ -358,7 +358,7 @@ struct growable_byte_array { cell count; gc_root elements; - growable_byte_array(factorvm *vm,cell capacity = 40) : count(0), elements(allot_byte_array(capacity),vm) { } + growable_byte_array(factorvm *myvm,cell capacity = 40) : count(0), elements(myvm->allot_byte_array(capacity),myvm) { } void append_bytes(void *elts, cell len); void append_byte_array(cell elts); diff --git a/vm/tuples.cpp b/vm/tuples.cpp index 5c4c6e17b0..520bc55d4d 100644 --- a/vm/tuples.cpp +++ b/vm/tuples.cpp @@ -12,11 +12,6 @@ tuple *factorvm::allot_tuple(cell layout_) return t.untagged(); } -tuple *allot_tuple(cell layout_) -{ - return vm->allot_tuple(layout_); -} - inline void factorvm::vmprim_tuple() { gc_root layout(dpop(),this);