From 5630daa0a82a5a9df6e67ee8cffdeebc0832a4f5 Mon Sep 17 00:00:00 2001 From: debris Date: Thu, 17 Dec 2015 17:21:37 +0100 Subject: [PATCH] removed unused block mod --- src/block.rs | 25 ------------------------- src/lib.rs | 1 - 2 files changed, 26 deletions(-) delete mode 100644 src/block.rs diff --git a/src/block.rs b/src/block.rs deleted file mode 100644 index a5fc7b348..000000000 --- a/src/block.rs +++ /dev/null @@ -1,25 +0,0 @@ -use util::hash::*; -use util::overlaydb::*; -use state::*; - -/// Active model of a block within the blockchain -pub struct Block { - state: State -} - -impl Block { - /// Creates block with empty state root - pub fn new(_db: OverlayDB) -> Block { - unimplemented!() - } - - /// Creates block with state root - pub fn new_existing(_db: OverlayDB, _state_root: H256) -> Block { - unimplemented!() - } - - /// Returns mutable reference to backing state - pub fn mutable_state<'a>(&'a mut self) -> &'a mut State { - &mut self.state - } -} diff --git a/src/lib.rs b/src/lib.rs index 4fa515465..7facaa21a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -87,7 +87,6 @@ pub use util::uint::*; pub use util::bytes::*; pub mod account; -pub mod block; pub mod blockchain; pub mod state; pub mod blockheader;