Skip to content

Commit

Permalink
Remove a little bit of unused C++
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Sep 27, 2013
1 parent 48499c7 commit 25bc6b6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/rt/rust_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

9 comments on commit 25bc6b6

@bors
Copy link
Contributor

@bors bors commented on 25bc6b6 Sep 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from thestinger
at brson@25bc6b6

@bors
Copy link
Contributor

@bors bors commented on 25bc6b6 Sep 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging brson/rust/lesscxx = 25bc6b6 into auto

@bors
Copy link
Contributor

@bors bors commented on 25bc6b6 Sep 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brson/rust/lesscxx = 25bc6b6 merged ok, testing candidate = f53d84ef

@bors
Copy link
Contributor

@bors bors commented on 25bc6b6 Sep 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from thestinger
at brson@25bc6b6

@bors
Copy link
Contributor

@bors bors commented on 25bc6b6 Sep 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging brson/rust/lesscxx = 25bc6b6 into auto

@bors
Copy link
Contributor

@bors bors commented on 25bc6b6 Sep 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brson/rust/lesscxx = 25bc6b6 merged ok, testing candidate = cde44ea

@bors
Copy link
Contributor

@bors bors commented on 25bc6b6 Sep 28, 2013

@bors
Copy link
Contributor

@bors bors commented on 25bc6b6 Sep 28, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = cde44ea

Please sign in to comment.