Removed Unnecessary comments and white spaces #4386

This commit is contained in:
reedlepee 2013-10-20 08:56:42 +05:30
parent 0ada7c7ffe
commit ad465441ba
111 changed files with 221 additions and 534 deletions

View file

@ -28,7 +28,6 @@ use ops::Drop;
* A simple atomic flag, that can be set and cleared. The most basic atomic type.
*/
pub struct AtomicFlag {
// already
priv v: int
}
@ -36,7 +35,6 @@ pub struct AtomicFlag {
* An atomic boolean type.
*/
pub struct AtomicBool {
// already
priv v: uint
}
@ -44,7 +42,6 @@ pub struct AtomicBool {
* A signed atomic integer type, supporting basic atomic arithmetic operations
*/
pub struct AtomicInt {
// already
priv v: int
}
@ -52,7 +49,6 @@ pub struct AtomicInt {
* An unsigned atomic integer type, supporting basic atomic arithmetic operations
*/
pub struct AtomicUint {
// already
priv v: uint
}
@ -60,7 +56,6 @@ pub struct AtomicUint {
* An unsafe atomic pointer. Only supports basic atomic operations
*/
pub struct AtomicPtr<T> {
// already
priv p: *mut T
}
@ -69,7 +64,6 @@ pub struct AtomicPtr<T> {
*/
#[unsafe_no_drop_flag]
pub struct AtomicOption<T> {
// already
priv p: *mut c_void
}

View file

@ -23,7 +23,6 @@ use ops::*;
use option::*;
use result::*;
// already
pub struct DynamicLibrary { priv handle: *libc::c_void }
impl Drop for DynamicLibrary {

View file

@ -149,7 +149,6 @@ pub mod ct {
// A formatted conversion from an expression to a string
#[deriving(Eq)]
pub struct Conv {
// all ade by reedlepee
param: Option<uint>,
flags: ~[Flag],
width: Count,
@ -500,7 +499,6 @@ pub mod rt {
pub enum Ty { TyDefault, TyBits, TyHexUpper, TyHexLower, TyOctal, }
pub struct Conv {
// all ade by reedlepee
flags: u32,
width: Count,
precision: Count,

View file

@ -42,9 +42,8 @@ pub type GlueFn = extern "Rust" fn(*i8);
#[lang="ty_desc"]
#[cfg(not(test))]
pub struct TyDesc {
// all ade by reedlepee
// sizeof(T)
size: uint,
size: uint,
// alignof(T)
align: uint,

View file

@ -13,7 +13,6 @@ use unstable::intrinsics::TyDesc;
/// The representation of a Rust managed box
pub struct Box<T> {
// all ade by reedlepee
ref_count: uint,
type_desc: *TyDesc,
priv prev: *Box<T>,
@ -23,7 +22,6 @@ pub struct Box<T> {
/// The representation of a Rust vector
pub struct Vec<T> {
// all ade by reedlepee
fill: uint,
alloc: uint,
data: T
@ -34,14 +32,12 @@ pub type String = Vec<u8>;
/// The representation of a Rust slice
pub struct Slice<T> {
// all ade by reedlepee
data: *T,
len: uint
}
/// The representation of a Rust closure
pub struct Closure {
// all ade by reedlepee
code: *(),
env: *(),
}

View file

@ -28,7 +28,6 @@ use vec;
/// Enforces no shared-memory safety.
//#[unsafe_no_drop_flag] FIXME: #9758
pub struct UnsafeArc<T> {
// all ade by reedlepee
data: *mut ArcData<T>,
}
@ -305,7 +304,6 @@ pub unsafe fn atomically<U>(f: &fn() -> U) -> U {
type rust_little_lock = *libc::c_void;
pub struct LittleLock {
// all ade by reedlepee
priv l: rust_little_lock,
}
@ -355,7 +353,6 @@ struct ExData<T> {
* need to block or deschedule while accessing shared state, use extra::sync::RWArc.
*/
pub struct Exclusive<T> {
// all ade by reedlepee
priv x: UnsafeArc<ExData<T>>
}