Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused function
  • Loading branch information
bjorn3 committed Sep 16, 2021
1 parent a8bb3bc commit 1ad44b2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/std/src/sys_common/thread_info.rs
Expand Up @@ -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);
}

0 comments on commit 1ad44b2

Please sign in to comment.