Skip to content

Commit cde44ea

Browse files
committed
auto merge of #9553 : brson/rust/lesscxx, r=thestinger
2 parents 67394f2 + 25bc6b6 commit cde44ea

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/rt/rust_util.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,6 @@ rust_vec
3636
uint8_t data[0];
3737
};
3838

39-
struct
40-
rust_vec_box
41-
{
42-
rust_opaque_box header;
43-
rust_vec body;
44-
};
45-
46-
template <typename T>
47-
inline size_t vec_size(size_t elems) {
48-
return sizeof(rust_vec_box) + sizeof(T) * elems;
49-
}
50-
51-
template <typename T>
52-
inline T *
53-
vec_data(rust_vec *v) {
54-
return reinterpret_cast<T*>(v->data);
55-
}
56-
5739
typedef rust_vec rust_str;
5840

5941
inline size_t get_box_size(size_t body_size, size_t body_align) {

0 commit comments

Comments
 (0)