about summary refs log tree commit diff
path: root/src/libstd/sys/windows/stack_overflow.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-02 10:58:01 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-02 10:58:01 -0800
commit902abab14475c4ed5885c1993492e89745edf0ad (patch)
treee87f4e9c0a7bb599a073088abcb5ddaea09dae09 /src/libstd/sys/windows/stack_overflow.rs
parent7b185f9cda565945ae048c5567b1680670ff7482 (diff)
parent70ed3a48dfa301c5bb56de3e0a7c25214539b83c (diff)
downloadrust-902abab14475c4ed5885c1993492e89745edf0ad.tar.gz
rust-902abab14475c4ed5885c1993492e89745edf0ad.zip
rollup merge of #21787: alexcrichton/std-env
Conflicts:
	src/libstd/sys/unix/backtrace.rs
	src/libstd/sys/unix/os.rs
Diffstat (limited to 'src/libstd/sys/windows/stack_overflow.rs')
-rw-r--r--src/libstd/sys/windows/stack_overflow.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libstd/sys/windows/stack_overflow.rs b/src/libstd/sys/windows/stack_overflow.rs
index 0cb4c573ae3..b0410701ee1 100644
--- a/src/libstd/sys/windows/stack_overflow.rs
+++ b/src/libstd/sys/windows/stack_overflow.rs
@@ -14,7 +14,7 @@ use ptr;
 use mem;
 use libc;
 use libc::types::os::arch::extra::{LPVOID, DWORD, LONG, BOOL};
-use sys_common::{stack, thread_info};
+use sys_common::stack;
 
 pub struct Handler {
     _data: *mut libc::c_void
@@ -30,14 +30,6 @@ impl Drop for Handler {
     fn drop(&mut self) {}
 }
 
-// get_task_info is called from an exception / signal handler.
-// It returns the guard page of the current task or 0 if that
-// guard page doesn't exist. None is returned if there's currently
-// no local task.
-unsafe fn get_task_guard_page() -> uint {
-    thread_info::stack_guard()
-}
-
 // This is initialized in init() and only read from after
 static mut PAGE_SIZE: uint = 0;