Skip to content

Commit

Permalink
grin v5.3 (0057) Remove unused imports (mimblewimble#3589)
Browse files Browse the repository at this point in the history
  • Loading branch information
bayk committed Jun 16, 2024
1 parent 0c978e2 commit 21bd823
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion core/src/core/committed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
//! The Committed trait and associated errors.
use failure::Fail;
use keychain;
use keychain::BlindingFactor;
use util::secp::key::SecretKey;
use util::secp::pedersen::Commitment;
Expand Down
1 change: 0 additions & 1 deletion core/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use crate::core::hash::Hash;
use crate::pow::{Difficulty, Proof, ProofOfWork};
use chrono::prelude::{TimeZone, Utc};
use keychain::BlindingFactor;
use util;
use util::secp::constants::SINGLE_BULLET_PROOF_SIZE;
use util::secp::pedersen::{Commitment, RangeProof};
use util::secp::Signature;
Expand Down
1 change: 0 additions & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ extern crate serde_derive;
use serde;
#[macro_use]
extern crate log;
use failure;
#[macro_use]
extern crate failure_derive;
#[macro_use]
Expand Down
1 change: 0 additions & 1 deletion core/src/libtx/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
//! libtx specific errors
use crate::core::transaction;
use failure::{Backtrace, Context, Fail};
use keychain;
use std::fmt::{self, Display};
use util::secp;

Expand Down
2 changes: 0 additions & 2 deletions core/src/pow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ pub use self::types::*;
use crate::core::{Block, BlockHeader};
use crate::genesis;
use crate::global;
use chrono;
use num;

#[macro_use]
mod common;
Expand Down
2 changes: 1 addition & 1 deletion core/src/pow/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
//! Common types and traits for cuckoo family of solvers
use crate::pow::error::Error;
use crate::pow::num::{PrimInt, ToPrimitive};
use crate::pow::siphash::siphash24;
use blake2::blake2b::blake2b;
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use num::{PrimInt, ToPrimitive};
use std::fmt;
use std::hash::Hash;
use std::io::Cursor;
Expand Down
2 changes: 1 addition & 1 deletion keychain/src/mnemonic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub fn to_entropy(mnemonic: &str) -> Result<Vec<u8>, Error> {

let mut hash = [0; 32];
let mut sha2sum = Sha256::default();
sha2sum.update(&entropy.clone());
sha2sum.update(&entropy);
hash.copy_from_slice(sha2sum.finalize().as_slice());

let actual = (hash[0] >> (8 - checksum_bits)) & mask;
Expand Down
2 changes: 0 additions & 2 deletions src/build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

//! Build hooks to spit out version+build time info
use built;

use std::env;
use std::path::{Path, PathBuf};
use std::process::Command;
Expand Down

0 comments on commit 21bd823

Please sign in to comment.