diff options
| author | bors <bors@rust-lang.org> | 2013-09-27 16:16:03 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-27 16:16:03 -0700 |
| commit | cde44ea2885ceac0f4589387ecc8bfd566ac675c (patch) | |
| tree | a3ab9f8cb27680ba13e9ce1d6d513b07dbb92626 | |
| parent | 67394f20eb0176828bc65f5caf6f4044994d9fb0 (diff) | |
| parent | 25bc6b628330c4f745f2261d2146e2839325d03e (diff) | |
| download | rust-cde44ea2885ceac0f4589387ecc8bfd566ac675c.tar.gz rust-cde44ea2885ceac0f4589387ecc8bfd566ac675c.zip | |
auto merge of #9553 : brson/rust/lesscxx, r=thestinger
| -rw-r--r-- | src/rt/rust_util.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/rt/rust_util.h b/src/rt/rust_util.h index d78ade4e94c..bd3258c24f9 100644 --- a/src/rt/rust_util.h +++ b/src/rt/rust_util.h @@ -36,24 +36,6 @@ rust_vec uint8_t data[0]; }; -struct -rust_vec_box -{ - rust_opaque_box header; - rust_vec body; -}; - -template <typename T> -inline size_t vec_size(size_t elems) { - return sizeof(rust_vec_box) + sizeof(T) * elems; -} - -template <typename T> -inline T * -vec_data(rust_vec *v) { - return reinterpret_cast<T*>(v->data); -} - typedef rust_vec rust_str; inline size_t get_box_size(size_t body_size, size_t body_align) { |
