diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-09-26 18:40:13 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-09-26 18:40:13 -0700 |
| commit | 25bc6b628330c4f745f2261d2146e2839325d03e (patch) | |
| tree | 3dceea0d44ea084e455f52e4a9bf80209ee09de6 | |
| parent | 48499c7494d47f505a640157816cea2690b8d407 (diff) | |
| download | rust-25bc6b628330c4f745f2261d2146e2839325d03e.tar.gz rust-25bc6b628330c4f745f2261d2146e2839325d03e.zip | |
Remove a little bit of unused C++
| -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) { |
