remove cfg(stage0) version of Eq, not needed for tests

This commit is contained in:
Niko Matsakis 2012-09-20 14:33:45 -07:00
parent 7abf55736c
commit 38595e6664

View File

@ -23,17 +23,6 @@ struct cmplx {
im: f64
}
#[cfg(stage0)]
impl cmplx : ops::Mul<cmplx,cmplx> {
pure fn mul(x: cmplx) -> cmplx {
cmplx {
re: self.re*x.re - self.im*x.im,
im: self.re*x.im + self.im*x.re
}
}
}
#[cfg(stage1)]
#[cfg(stage2)]
impl cmplx : ops::Mul<cmplx,cmplx> {
pure fn mul(x: &cmplx) -> cmplx {
cmplx {
@ -43,17 +32,6 @@ impl cmplx : ops::Mul<cmplx,cmplx> {
}
}
#[cfg(stage0)]
impl cmplx : ops::Add<cmplx,cmplx> {
pure fn add(x: cmplx) -> cmplx {
cmplx {
re: self.re + x.re,
im: self.im + x.im
}
}
}
#[cfg(stage1)]
#[cfg(stage2)]
impl cmplx : ops::Add<cmplx,cmplx> {
pure fn add(x: &cmplx) -> cmplx {
cmplx {