diff options
Diffstat (limited to 'src/rt/rust_util.h')
| -rw-r--r-- | src/rt/rust_util.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/rt/rust_util.h b/src/rt/rust_util.h index 7c531297ccd..acedbe31a6b 100644 --- a/src/rt/rust_util.h +++ b/src/rt/rust_util.h @@ -12,7 +12,6 @@ #define RUST_UTIL_H #include <limits.h> -#include "rust_exchange_alloc.h" #include "rust_type.h" extern struct type_desc str_body_tydesc; @@ -57,16 +56,6 @@ vec_data(rust_vec *v) { return reinterpret_cast<T*>(v->data); } -inline void reserve_vec_exact(rust_vec** vpp, - size_t size) { - if (size > (*vpp)->alloc) { - rust_exchange_alloc exchange_alloc; - *vpp = (rust_vec*)exchange_alloc - .realloc(*vpp, size + sizeof(rust_vec)); - (*vpp)->alloc = size; - } -} - typedef rust_vec rust_str; inline size_t get_box_size(size_t body_size, size_t body_align) { |
