Skip to content

Commit f04bc70

Browse files
committed
Remove unused msvcrt::get_errno
1 parent d6a3358 commit f04bc70

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

vm/src/stdlib/msvcrt.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ mod msvcrt {
2424
unsafe { suppress_iph!(_setmode(fd, libc::O_BINARY)) };
2525
}
2626

27-
pub fn get_errno() -> i32 {
28-
let mut e = 0;
29-
unsafe { suppress_iph!(_get_errno(&mut e)) };
30-
e
31-
}
32-
33-
extern "C" {
34-
fn _get_errno(pValue: *mut i32) -> i32;
35-
}
36-
3727
extern "C" {
3828
fn _getch() -> i32;
3929
fn _getwch() -> u32;

0 commit comments

Comments
 (0)