From 985bced99d00a84f9d4bf8fdd0e4ad596f2e498f Mon Sep 17 00:00:00 2001 From: Antioch Peverell Date: Sat, 29 Sep 2018 09:50:32 +0100 Subject: [PATCH] remove duplicate dir creation code (#1603) --- chain/src/txhashset/txhashset.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/chain/src/txhashset/txhashset.rs b/chain/src/txhashset/txhashset.rs index 83ab9f3d3..371b35dba 100644 --- a/chain/src/txhashset/txhashset.rs +++ b/chain/src/txhashset/txhashset.rs @@ -103,21 +103,6 @@ impl TxHashSet { commit_index: Arc, header: Option<&BlockHeader>, ) -> Result { - let output_file_path: PathBuf = [&root_dir, TXHASHSET_SUBDIR, OUTPUT_SUBDIR] - .iter() - .collect(); - fs::create_dir_all(output_file_path.clone())?; - - let rproof_file_path: PathBuf = [&root_dir, TXHASHSET_SUBDIR, RANGE_PROOF_SUBDIR] - .iter() - .collect(); - fs::create_dir_all(rproof_file_path.clone())?; - - let kernel_file_path: PathBuf = [&root_dir, TXHASHSET_SUBDIR, KERNEL_SUBDIR] - .iter() - .collect(); - fs::create_dir_all(kernel_file_path.clone())?; - Ok(TxHashSet { output_pmmr_h: PMMRHandle::new(root_dir.clone(), OUTPUT_SUBDIR, true, header)?, rproof_pmmr_h: PMMRHandle::new(root_dir.clone(), RANGE_PROOF_SUBDIR, true, header)?,