about summary refs log tree commit diff
path: root/src/libstd/rt/io
diff options
context:
space:
mode:
authorreedlepee <reedlepee123@gmail.com>2013-10-20 08:56:42 +0530
committerreedlepee <reedlepee123@gmail.com>2013-10-23 01:10:50 +0530
commitad465441ba3424cc5bcba2227c6a42ffe09fd77f (patch)
tree6ee335e4b7e144450fdc2e1d729602cc5a70148e /src/libstd/rt/io
parent0ada7c7ffe453b9df849996f8dca0b8d0f2d9e62 (diff)
downloadrust-ad465441ba3424cc5bcba2227c6a42ffe09fd77f.tar.gz
rust-ad465441ba3424cc5bcba2227c6a42ffe09fd77f.zip
Removed Unnecessary comments and white spaces #4386
Diffstat (limited to 'src/libstd/rt/io')
-rw-r--r--src/libstd/rt/io/buffered.rs3
-rw-r--r--src/libstd/rt/io/extensions.rs1
-rw-r--r--src/libstd/rt/io/file.rs3
-rw-r--r--src/libstd/rt/io/flate.rs2
-rw-r--r--src/libstd/rt/io/mem.rs4
-rw-r--r--src/libstd/rt/io/mock.rs1
-rw-r--r--src/libstd/rt/io/mod.rs2
-rw-r--r--src/libstd/rt/io/native/file.rs2
-rw-r--r--src/libstd/rt/io/native/process.rs1
-rw-r--r--src/libstd/rt/io/native/stdio.rs2
-rw-r--r--src/libstd/rt/io/net/ip.rs1
-rw-r--r--src/libstd/rt/io/net/tcp.rs3
-rw-r--r--src/libstd/rt/io/net/udp.rs2
-rw-r--r--src/libstd/rt/io/pipe.rs1
-rw-r--r--src/libstd/rt/io/process.rs3
-rw-r--r--src/libstd/rt/io/stdio.rs2
-rw-r--r--src/libstd/rt/io/timer.rs1
17 files changed, 0 insertions, 34 deletions
diff --git a/src/libstd/rt/io/buffered.rs b/src/libstd/rt/io/buffered.rs
index a33892736b0..9dcb35c806f 100644
--- a/src/libstd/rt/io/buffered.rs
+++ b/src/libstd/rt/io/buffered.rs
@@ -64,7 +64,6 @@ static DEFAULT_CAPACITY: uint = 64 * 1024;
 
 /// Wraps a Reader and buffers input from it
 pub struct BufferedReader<R> {
-    // all already priv
     priv inner: R,
     priv buf: ~[u8],
     priv pos: uint,
@@ -176,7 +175,6 @@ impl<R: Reader> Decorator<R> for BufferedReader<R> {
 ///
 /// Note that `BufferedWriter` will NOT flush its buffer when dropped.
 pub struct BufferedWriter<W> {
-    // all already priv
     priv inner: W,
     priv buf: ~[u8],
     priv pos: uint
@@ -252,7 +250,6 @@ impl<W: Reader> Reader for InternalBufferedWriter<W> {
 ///
 /// Note that `BufferedStream` will NOT flush its output buffer when dropped.
 pub struct BufferedStream<S> {
-    // all already priv
     priv inner: BufferedReader<InternalBufferedWriter<S>>
 }
 
diff --git a/src/libstd/rt/io/extensions.rs b/src/libstd/rt/io/extensions.rs
index 5a3524195c7..99634b532b0 100644
--- a/src/libstd/rt/io/extensions.rs
+++ b/src/libstd/rt/io/extensions.rs
@@ -368,7 +368,6 @@ impl<T: Reader> ReaderUtil for T {
 /// each call to its `.next()` method.
 /// Yields `None` if the condition is handled.
 pub struct ByteIterator<T> {
-    // all already priv
     priv reader: T,
 }
 
diff --git a/src/libstd/rt/io/file.rs b/src/libstd/rt/io/file.rs
index 9d633ec1c65..3869f99adea 100644
--- a/src/libstd/rt/io/file.rs
+++ b/src/libstd/rt/io/file.rs
@@ -298,7 +298,6 @@ pub fn readdir<P: PathLike>(path: &P) -> Option<~[Path]> {
 /// Constrained version of `FileStream` that only exposes read-specific operations.
 ///
 /// Can be retreived via `FileInfo.open_reader()`.
-/// all already priv
 pub struct FileReader { priv stream: FileStream }
 
 /// a `std::rt::io::Reader` trait impl for file I/O.
@@ -326,7 +325,6 @@ impl Seek for FileReader {
 /// Constrained version of `FileStream` that only exposes write-specific operations.
 ///
 /// Can be retreived via `FileInfo.open_writer()`.
-// already priv
 pub struct FileWriter { priv stream: FileStream }
 
 /// a `std::rt::io::Writer` trait impl for file I/O.
@@ -364,7 +362,6 @@ impl Seek for FileWriter {
 /// For this reason, it is best to use the access-constrained wrappers that are
 /// exposed via `FileInfo.open_reader()` and `FileInfo.open_writer()`.
 pub struct FileStream {
-    // all made by reedlepee
     priv fd: ~RtioFileStream,
     priv last_nread: int,
 }
diff --git a/src/libstd/rt/io/flate.rs b/src/libstd/rt/io/flate.rs
index 9c49f2afb1e..8a5aa171eb8 100644
--- a/src/libstd/rt/io/flate.rs
+++ b/src/libstd/rt/io/flate.rs
@@ -17,7 +17,6 @@ use super::*;
 
 /// A Writer decorator that compresses using the 'deflate' scheme
 pub struct DeflateWriter<W> {
-    // all made by reedlepee
     priv inner_writer: W
 }
 
@@ -57,7 +56,6 @@ impl<W: Writer> Decorator<W> for DeflateWriter<W> {
 
 /// A Reader decorator that decompresses using the 'deflate' scheme
 pub struct InflateReader<R> {
-    // all made by reedlepee
     priv inner_reader: R
 }
 
diff --git a/src/libstd/rt/io/mem.rs b/src/libstd/rt/io/mem.rs
index 85bd46ebaf4..5f6b4398c22 100644
--- a/src/libstd/rt/io/mem.rs
+++ b/src/libstd/rt/io/mem.rs
@@ -22,7 +22,6 @@ use vec;
 
 /// Writes to an owned, growable byte vector
 pub struct MemWriter {
-    // already priv
     priv buf: ~[u8]
 }
 
@@ -67,7 +66,6 @@ impl Decorator<~[u8]> for MemWriter {
 
 /// Reads from an owned byte vector
 pub struct MemReader {
-    // already priv
     priv buf: ~[u8],
     priv pos: uint
 }
@@ -131,7 +129,6 @@ impl Decorator<~[u8]> for MemReader {
 
 /// Writes to a fixed-size byte slice
 pub struct BufWriter<'self> {
-    // already priv
     priv buf: &'self mut [u8],
     priv pos: uint
 }
@@ -160,7 +157,6 @@ impl<'self> Seek for BufWriter<'self> {
 
 /// Reads from a fixed-size byte slice
 pub struct BufReader<'self> {
-    // already priv
     priv buf: &'self [u8],
     priv pos: uint
 }
diff --git a/src/libstd/rt/io/mock.rs b/src/libstd/rt/io/mock.rs
index 30775ec90ba..44709c7b7b6 100644
--- a/src/libstd/rt/io/mock.rs
+++ b/src/libstd/rt/io/mock.rs
@@ -12,7 +12,6 @@ use option::{Option, None};
 use rt::io::{Reader, Writer};
 
 pub struct MockReader {
-    // all made by reedlepee
     read: ~fn(buf: &mut [u8]) -> Option<uint>,
     priv eof: ~fn() -> bool
 }
diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs
index d9951741ab2..c0971b5d3cd 100644
--- a/src/libstd/rt/io/mod.rs
+++ b/src/libstd/rt/io/mod.rs
@@ -341,7 +341,6 @@ pub static DEFAULT_BUF_SIZE: uint = 1024 * 64;
 ///
 /// Is something like this sufficient? It's kind of archaic
 pub struct IoError {
-    // all made by reedlepee
     kind: IoErrorKind,
     desc: &'static str,
     detail: Option<~str>
@@ -649,7 +648,6 @@ pub enum FileAccess {
 }
 
 pub struct FileStat {
-    // all made by reedlepee
     /// A `Path` object containing information about the `PathInfo`'s location
     path: Path,
     /// `true` if the file pointed at by the `PathInfo` is a regular file
diff --git a/src/libstd/rt/io/native/file.rs b/src/libstd/rt/io/native/file.rs
index cce2e851452..d6820981181 100644
--- a/src/libstd/rt/io/native/file.rs
+++ b/src/libstd/rt/io/native/file.rs
@@ -61,7 +61,6 @@ fn keep_going(data: &[u8], f: &fn(*u8, uint) -> i64) -> i64 {
 pub type fd_t = libc::c_int;
 
 pub struct FileDesc {
-    // aleady priv
     priv fd: fd_t,
 }
 
@@ -127,7 +126,6 @@ impl Drop for FileDesc {
 }
 
 pub struct CFile {
-    // aleady priv
     priv file: *libc::FILE
 }
 
diff --git a/src/libstd/rt/io/native/process.rs b/src/libstd/rt/io/native/process.rs
index 73ce330cd49..91fff6d9263 100644
--- a/src/libstd/rt/io/native/process.rs
+++ b/src/libstd/rt/io/native/process.rs
@@ -25,7 +25,6 @@ use super::file;
  * for the process to terminate.
  */
 pub struct Process {
-    // aleady priv
     /// The unique id of the process (this should never be negative).
     priv pid: pid_t,
 
diff --git a/src/libstd/rt/io/native/stdio.rs b/src/libstd/rt/io/native/stdio.rs
index 41c25e0841a..5661725d77b 100644
--- a/src/libstd/rt/io/native/stdio.rs
+++ b/src/libstd/rt/io/native/stdio.rs
@@ -31,7 +31,6 @@ pub fn println(s: &str) {
 }
 
 pub struct StdIn {
-    // aleady priv
     priv fd: file::FileDesc
 }
 
@@ -50,7 +49,6 @@ impl Reader for StdIn {
 }
 
 pub struct StdOut {
-    // aleady priv
     priv fd: file::FileDesc
 }
 
diff --git a/src/libstd/rt/io/net/ip.rs b/src/libstd/rt/io/net/ip.rs
index 945014867e2..f72d2e1f19b 100644
--- a/src/libstd/rt/io/net/ip.rs
+++ b/src/libstd/rt/io/net/ip.rs
@@ -48,7 +48,6 @@ impl ToStr for IpAddr {
 
 #[deriving(Eq, TotalEq, Clone)]
 pub struct SocketAddr {
-    // all made by reedlpee
     ip: IpAddr,
     port: Port,
 }
diff --git a/src/libstd/rt/io/net/tcp.rs b/src/libstd/rt/io/net/tcp.rs
index 0ed5861e296..f29e17cfc2f 100644
--- a/src/libstd/rt/io/net/tcp.rs
+++ b/src/libstd/rt/io/net/tcp.rs
@@ -21,7 +21,6 @@ use rt::rtio::{IoFactory, IoFactoryObject,
 use rt::local::Local;
 
 pub struct TcpStream {
-    // aleady priv
     priv obj: ~RtioTcpStreamObject
 }
 
@@ -100,7 +99,6 @@ impl Writer for TcpStream {
 }
 
 pub struct TcpListener {
-    // aleady priv
     priv obj: ~RtioTcpListenerObject
 }
 
@@ -144,7 +142,6 @@ impl Listener<TcpStream, TcpAcceptor> for TcpListener {
 }
 
 pub struct TcpAcceptor {
-    // aleady priv
     priv obj: ~RtioTcpAcceptorObject
 }
 
diff --git a/src/libstd/rt/io/net/udp.rs b/src/libstd/rt/io/net/udp.rs
index 5c63dd5352e..27faae0838b 100644
--- a/src/libstd/rt/io/net/udp.rs
+++ b/src/libstd/rt/io/net/udp.rs
@@ -17,7 +17,6 @@ use rt::rtio::{RtioSocket, RtioUdpSocketObject, RtioUdpSocket, IoFactory, IoFact
 use rt::local::Local;
 
 pub struct UdpSocket {
-    // aleady priv
     priv obj: ~RtioUdpSocketObject
 }
 
@@ -73,7 +72,6 @@ impl UdpSocket {
 }
 
 pub struct UdpStream {
-    // aleady priv
     priv socket: UdpSocket,
     priv connectedTo: SocketAddr
 }
diff --git a/src/libstd/rt/io/pipe.rs b/src/libstd/rt/io/pipe.rs
index a89419fa41f..d2cd531ed26 100644
--- a/src/libstd/rt/io/pipe.rs
+++ b/src/libstd/rt/io/pipe.rs
@@ -21,7 +21,6 @@ use rt::rtio::{RtioPipe, RtioPipeObject, IoFactoryObject, IoFactory};
 use rt::rtio::RtioUnboundPipeObject;
 
 pub struct PipeStream {
-    // already priv
     priv obj: RtioPipeObject
 }
 
diff --git a/src/libstd/rt/io/process.rs b/src/libstd/rt/io/process.rs
index e6029e0ff9c..5f2453852ee 100644
--- a/src/libstd/rt/io/process.rs
+++ b/src/libstd/rt/io/process.rs
@@ -26,16 +26,13 @@ use rt::rtio::{RtioProcess, RtioProcessObject, IoFactoryObject, IoFactory};
 #[cfg(not(windows))] pub static MustDieSignal: int = libc::SIGKILL as int;
 
 pub struct Process {
-    // already priv
     priv handle: ~RtioProcessObject,
-    // made by reedlepee
     io: ~[Option<io::PipeStream>],
 }
 
 /// This configuration describes how a new process should be spawned. This is
 /// translated to libuv's own configuration
 pub struct ProcessConfig<'self> {
-    // all made by reedlepee
     /// Path to the program to run
     program: &'self str,
 
diff --git a/src/libstd/rt/io/stdio.rs b/src/libstd/rt/io/stdio.rs
index 9f540dd0a81..e6dd9a48099 100644
--- a/src/libstd/rt/io/stdio.rs
+++ b/src/libstd/rt/io/stdio.rs
@@ -87,7 +87,6 @@ pub fn println_args(fmt: &fmt::Arguments) {
 
 /// Representation of a reader of a standard input stream
 pub struct StdReader {
-    // aleady priv
     priv inner: ~RtioFileStream
 }
 
@@ -107,7 +106,6 @@ impl Reader for StdReader {
 
 /// Representation of a writer to a standard output stream
 pub struct StdWriter {
-    // aleady priv
     priv inner: ~RtioFileStream
 }
 
diff --git a/src/libstd/rt/io/timer.rs b/src/libstd/rt/io/timer.rs
index cb35fdf5883..b41d7541a60 100644
--- a/src/libstd/rt/io/timer.rs
+++ b/src/libstd/rt/io/timer.rs
@@ -16,7 +16,6 @@ use rt::rtio::{IoFactory, IoFactoryObject,
 use rt::local::Local;
 
 pub struct Timer {
-    // aleady priv
     priv obj: ~RtioTimerObject
 }