@@ -81,7 +81,6 @@ rust_getcwd() {
81
81
return make_str (task->kernel , cbuf, strlen (cbuf), " rust_str(getcwd" );
82
82
}
83
83
84
-
85
84
#if defined(__WIN32__)
86
85
extern " C" CDECL rust_vec *
87
86
rust_env_pairs () {
@@ -124,18 +123,6 @@ rust_env_pairs() {
124
123
}
125
124
#endif
126
125
127
- // TODO: Allow calling native functions that return double results.
128
- extern " C" CDECL
129
- void squareroot (double *input, double *output) {
130
- *output = sqrt (*input);
131
- }
132
-
133
- extern " C" CDECL void
134
- leak (void *thing) {
135
- // Do nothing. Call this with move-mode in order to say "Don't worry rust,
136
- // I'll take care of this."
137
- }
138
-
139
126
extern " C" CDECL intptr_t
140
127
refcount (intptr_t *v) {
141
128
// Passed-in value has refcount 1 too high
@@ -474,13 +461,6 @@ rust_new_task_in_sched(rust_sched_id id) {
474
461
return new_task_common (sched, task);
475
462
}
476
463
477
- extern " C" CDECL void
478
- drop_task (rust_task *target) {
479
- if (target) {
480
- target->deref ();
481
- }
482
- }
483
-
484
464
extern " C" CDECL void
485
465
rust_task_config_notify (rust_task_id task_id, chan_handle *chan) {
486
466
rust_task *task = rust_task_thread::get_task ();
@@ -491,12 +471,6 @@ rust_task_config_notify(rust_task_id task_id, chan_handle *chan) {
491
471
target->deref ();
492
472
}
493
473
494
- extern " C" CDECL rust_task *
495
- get_task_pointer (rust_task_id id) {
496
- rust_task *task = rust_task_thread::get_task ();
497
- return task->kernel ->get_task_by_id (id);
498
- }
499
-
500
474
extern " C" rust_task *
501
475
rust_get_task () {
502
476
return rust_task_thread::get_task ();
0 commit comments