From 8b1c424b6d1cb001907e0fc0401e5242e297a83e Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Sun, 16 Dec 2018 16:18:45 +0300 Subject: privacy: Use common `DefId` visiting infra for all privacy visitors --- src/libstd/sys/windows/handle.rs | 5 ----- src/libstd/sys/windows/stdio.rs | 5 ----- 2 files changed, 10 deletions(-) (limited to 'src/libstd/sys') diff --git a/src/libstd/sys/windows/handle.rs b/src/libstd/sys/windows/handle.rs index 7d12e0f6ef0..855efbd3eb5 100644 --- a/src/libstd/sys/windows/handle.rs +++ b/src/libstd/sys/windows/handle.rs @@ -160,11 +160,6 @@ impl RawHandle { } } - pub fn read_to_end(&self, buf: &mut Vec) -> io::Result { - let mut me = self; - (&mut me).read_to_end(buf) - } - pub fn write(&self, buf: &[u8]) -> io::Result { let mut amt = 0; let len = cmp::min(buf.len(), ::max_value() as usize) as c::DWORD; diff --git a/src/libstd/sys/windows/stdio.rs b/src/libstd/sys/windows/stdio.rs index f331397db8c..a4f4bd22cd9 100644 --- a/src/libstd/sys/windows/stdio.rs +++ b/src/libstd/sys/windows/stdio.rs @@ -128,11 +128,6 @@ impl Stdin { // MemReader shouldn't error here since we just filled it utf8.read(buf) } - - pub fn read_to_end(&self, buf: &mut Vec) -> io::Result { - let mut me = self; - (&mut me).read_to_end(buf) - } } #[unstable(reason = "not public", issue = "0", feature = "fd_read")] -- cgit 1.4.1-3-g733a5