From 1897d55a791e7ea77e6840d4eb6437bf6a8cc99f Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Wed, 27 Jan 2016 16:41:41 +0400 Subject: [PATCH] removed unused cfg options --- src/tests/client.rs | 3 --- src/tests/helpers.rs | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/tests/client.rs b/src/tests/client.rs index 2b8a97551..92bf31c89 100644 --- a/src/tests/client.rs +++ b/src/tests/client.rs @@ -2,7 +2,6 @@ use client::{BlockChainClient,Client}; use super::test_common::*; use super::helpers::*; -#[cfg(test)] fn get_good_dummy_block() -> Bytes { let mut block_header = Header::new(); let test_spec = get_test_spec(); @@ -17,7 +16,6 @@ fn get_good_dummy_block() -> Bytes { create_test_block(&block_header) } -#[cfg(test)] fn get_bad_state_dummy_block() -> Bytes { let mut block_header = Header::new(); let test_spec = get_test_spec(); @@ -33,7 +31,6 @@ fn get_bad_state_dummy_block() -> Bytes { } -#[cfg(test)] fn get_test_client_with_blocks(blocks: Vec) -> Arc { let client = Client::new(get_test_spec(), &get_random_path(), IoChannel::disconnected()).unwrap(); for block in &blocks { diff --git a/src/tests/helpers.rs b/src/tests/helpers.rs index 7f9b8ba42..4aa2ae8fc 100644 --- a/src/tests/helpers.rs +++ b/src/tests/helpers.rs @@ -5,11 +5,10 @@ use std::path::PathBuf; use spec::*; use std::fs::{create_dir_all}; -#[cfg(test)] + const FIXED_TEMP_DIR_NAME: &'static str = "parity-temp"; -#[cfg(test)] pub fn get_tests_temp_dir() -> PathBuf { let mut dir = env::temp_dir(); dir.push(FIXED_TEMP_DIR_NAME); @@ -19,7 +18,6 @@ pub fn get_tests_temp_dir() -> PathBuf { dir } -#[cfg(test)] pub fn get_random_path() -> PathBuf { let mut dir = get_tests_temp_dir(); dir.push(H32::random().hex()); @@ -27,13 +25,11 @@ pub fn get_random_path() -> PathBuf { } -#[cfg(test)] pub fn get_test_spec() -> Spec { Spec::new_test() } -#[cfg(test)] pub fn create_test_block(header: &Header) -> Bytes { let mut rlp = RlpStream::new_list(3); rlp.append(header); @@ -42,7 +38,6 @@ pub fn create_test_block(header: &Header) -> Bytes { rlp.out() } -#[cfg(test)] pub fn generate_dummy_client(block_number: usize) -> Arc { let client = Client::new(get_test_spec(), &get_random_path(), IoChannel::disconnected()).unwrap();