Remove Zero and One impls

This commit is contained in:
Steven Fackler 2014-11-17 16:29:12 -08:00
parent c766f29965
commit af5533d936
1 changed files with 0 additions and 20 deletions

View File

@ -1,7 +1,6 @@
use libc::{c_int, c_ulong};
use std::{fmt, ptr};
use std::c_str::CString;
use std::num::{One, Zero};
use ffi;
use ssl::error::SslError;
@ -361,25 +360,6 @@ impl fmt::Show for BigNum {
}
}
impl One for BigNum {
fn one() -> BigNum {
BigNum::new_from(1).unwrap()
}
}
impl Zero for BigNum {
fn zero() -> BigNum {
BigNum::new_from(0).unwrap()
}
fn is_zero(&self) -> bool {
unsafe {
// It is raw contents of BN_is_zero macro
(*self.raw()).top == 0
}
}
}
impl Eq for BigNum { }
impl PartialEq for BigNum {
fn eq(&self, oth: &BigNum) -> bool {