rt: Remove rust_call_nullary_fn

There's no need to delegate to C to call the Rust main function.
This commit is contained in:
Brian Anderson
2013-05-07 23:01:02 -07:00
parent 3c4b32cdbe
commit 80061ecb1d
3 changed files with 19 additions and 14 deletions

View File

@@ -830,13 +830,6 @@ rust_get_rt_env() {
return task->kernel->env;
}
typedef void *(*nullary_fn)();
extern "C" CDECL void
rust_call_nullary_fn(nullary_fn f) {
f();
}
#ifndef _WIN32
pthread_key_t sched_key;
#else