diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-09-16 14:58:36 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-09-16 14:58:36 +0200 |
| commit | 1ad44b23d1e6d0d5f52d3ed689f35abbe797ef11 (patch) | |
| tree | b120d6b01037e0768740fc32afa51bdcddc27425 | |
| parent | a8bb3bcd38502e63c3b729ca215fdb18a0c70e77 (diff) | |
Remove unused function
| -rw-r--r-- | library/std/src/sys_common/thread_info.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/library/std/src/sys_common/thread_info.rs b/library/std/src/sys_common/thread_info.rs index 1d2e2dd4361..f18d83b53b4 100644 --- a/library/std/src/sys_common/thread_info.rs +++ b/library/std/src/sys_common/thread_info.rs @@ -42,7 +42,3 @@ pub fn set(stack_guard: Option<Guard>, thread: Thread) { THREAD_INFO.with(|c| assert!(c.borrow().is_none())); THREAD_INFO.with(move |c| *c.borrow_mut() = Some(ThreadInfo { stack_guard, thread })); } - -pub fn reset_guard(stack_guard: Option<Guard>) { - THREAD_INFO.with(move |c| c.borrow_mut().as_mut().unwrap().stack_guard = stack_guard); -} |
