Skip to content

rt: Delete more C++ #10439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 12, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/rt/rust_builtin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

/* Foreign builtins. */

#include "rust_util.h"
#include "sync/lock_and_signal.h"
#include "vg/valgrind.h"

Expand Down Expand Up @@ -234,6 +233,16 @@ precise_time_ns(uint64_t *ns) {
#endif
}

struct
rust_vec
{
size_t fill; // in bytes; if zero, heapified
size_t alloc; // in bytes
uint8_t data[0];
};

typedef rust_vec rust_str;

struct rust_tm {
int32_t tm_sec;
int32_t tm_min;
Expand Down
1 change: 0 additions & 1 deletion src/rt/rust_test_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// Helper functions used only in tests

#include "rust_util.h"
#include "sync/lock_and_signal.h"

// These functions are used in the unit tests for C ABI calls.
Expand Down
81 changes: 0 additions & 81 deletions src/rt/rust_type.h

This file was deleted.

1 change: 0 additions & 1 deletion src/rt/rust_upcall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/

#include "rust_globals.h"
#include "rust_util.h"

//Unwinding ABI declarations.
typedef int _Unwind_Reason_Code;
Expand Down
57 changes: 0 additions & 57 deletions src/rt/rust_util.h

This file was deleted.