core: remove several unused imports

This commit is contained in:
Merope Riddle 2016-11-01 01:44:11 +00:00
parent ca89dae7e1
commit 33ccfe3b65
5 changed files with 7 additions and 18 deletions

View file

@ -17,7 +17,7 @@
//! Primary hash function used in the protocol
//!
use byteorder::{ByteOrder, WriteBytesExt, BigEndian};
use byteorder::{ByteOrder, BigEndian};
use std::fmt;
use tiny_keccak::Keccak;

View file

@ -18,25 +18,18 @@ pub mod block;
pub mod hash;
pub mod transaction;
#[allow(dead_code)]
#[macro_use]
pub use self::block::{Block, BlockHeader};
pub use self::transaction::{Transaction, Input, Output, TxProof};
use self::hash::{Hash, Hashed, ZERO_HASH};
use ser::{Writeable, Writer, Error, ser_vec};
use time;
use ser::{Writeable, Writer, Error};
use std::fmt;
use std::cmp::Ordering;
use secp;
use secp::{Secp256k1, Signature, Message};
use secp::key::SecretKey;
use secp::{self, Secp256k1};
use secp::pedersen::*;
use tiny_keccak::Keccak;
/// The block subsidy amount
pub const REWARD: u64 = 1_000_000_000;
@ -198,7 +191,7 @@ impl MerkleRow {
#[cfg(test)]
mod test {
use super::*;
use super::hash::{Hash, Hashed, ZERO_HASH};
use core::hash::ZERO_HASH;
use secp;
use secp::Secp256k1;
use secp::key::SecretKey;

View file

@ -378,7 +378,6 @@ mod test {
use secp::{self, Secp256k1};
use secp::key::SecretKey;
use rand::Rng;
use rand::os::OsRng;
fn new_secp() -> Secp256k1 {

View file

@ -19,7 +19,6 @@
use std::collections::HashSet;
use std::cmp;
use std::fmt;
use crypto::digest::Digest;
use crypto::sha2::Sha256;

View file

@ -27,12 +27,12 @@ mod cuckoo;
use time;
use core::{Block, BlockHeader, Proof, PROOFSIZE};
use core::{Block, Proof, PROOFSIZE};
use core::hash::{Hash, Hashed};
use pow::cuckoo::{Cuckoo, Miner, Error};
use ser;
use ser::{Writeable, Writer, ser_vec};
use ser::{Writeable, Writer};
/// Default Cuckoo Cycle size shift used is 28. We may decide to increase it.
/// when difficuty increases.
@ -169,9 +169,7 @@ fn pow_size(b: &Block, target: Proof, sizeshift: u32) -> Result<(Proof, u64), Er
#[cfg(test)]
mod test {
use super::*;
use core::{BlockHeader, Proof};
use core::hash::Hash;
use std::time::Instant;
use core::Proof;
use genesis;
#[test]