Skip to content

Commit 23b7ee2

Browse files
committed
std: Remove unstable::global. Unused
1 parent 6174f9a commit 23b7ee2

File tree

6 files changed

+1
-292
lines changed

6 files changed

+1
-292
lines changed

src/libstd/unstable/global.rs

Lines changed: 0 additions & 281 deletions
This file was deleted.

src/libstd/unstable/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ pub mod at_exit;
2020

2121
pub mod dynamic_lib;
2222

23-
pub mod global;
2423
pub mod finally;
2524
pub mod intrinsics;
2625
pub mod simd;

src/rt/rust_builtin.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -763,12 +763,6 @@ rust_register_exit_function(spawn_fn runner, fn_env_pair *f) {
763763
task->kernel->register_exit_function(runner, f);
764764
}
765765

766-
extern "C" intptr_t*
767-
rust_get_global_data_ptr() {
768-
rust_task *task = rust_get_current_task();
769-
return &task->kernel->global_data;
770-
}
771-
772766
#ifndef _WIN32
773767
#include <sys/types.h>
774768
#include <dirent.h>

src/rt/rust_kernel.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ rust_kernel::rust_kernel(rust_env *env) :
3333
non_weak_tasks(0),
3434
at_exit_runner(NULL),
3535
at_exit_started(false),
36-
env(env),
37-
global_data(0)
36+
env(env)
3837
{
3938
// Create the single threaded scheduler that will run on the platform's
4039
// main thread

src/rt/rust_kernel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ class rust_kernel {
124124

125125
public:
126126
struct rust_env *env;
127-
intptr_t global_data;
128127

129128
rust_kernel(rust_env *env);
130129

src/rt/rustrt.def.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ linenoiseHistoryLoad
215215
rust_raw_thread_start
216216
rust_raw_thread_join_delete
217217
rust_register_exit_function
218-
rust_get_global_data_ptr
219218
rust_get_rt_tls_key
220219
swap_registers
221220
rust_readdir

0 commit comments

Comments
 (0)