diff --git a/core/src/core/pmmr/backend.rs b/core/src/core/pmmr/backend.rs index c92dd7f317..27d8c1b487 100644 --- a/core/src/core/pmmr/backend.rs +++ b/core/src/core/pmmr/backend.rs @@ -60,15 +60,9 @@ pub trait Backend { /// triggered removal). fn remove(&mut self, position: u64) -> Result<(), String>; - /// Returns the data file path.. this is a bit of a hack now that doesn't - /// sit well with the design, but TxKernels have to be summed and the - /// fastest way to to be able to allow direct access to the file - fn get_data_file_path(&self) -> &Path; - /// Release underlying datafiles and locks fn release_files(&mut self); - /// Also a bit of a hack... /// Saves a snapshot of the rewound utxo file with the block hash as /// filename suffix. We need this when sending a txhashset zip file to a /// node for fast sync. diff --git a/core/src/core/pmmr/pmmr.rs b/core/src/core/pmmr/pmmr.rs index e26b80030e..6fd355200e 100644 --- a/core/src/core/pmmr/pmmr.rs +++ b/core/src/core/pmmr/pmmr.rs @@ -335,11 +335,6 @@ where self.last_pos } - /// Return the path of the data file (needed to sum kernels efficiently) - pub fn data_file_path(&self) -> &Path { - self.backend.get_data_file_path() - } - /// Debugging utility to print information about the MMRs. Short version /// only prints the last 8 nodes. pub fn dump(&self, short: bool) { diff --git a/core/tests/vec_backend.rs b/core/tests/vec_backend.rs index 73f5e3a7e4..cb894ce676 100644 --- a/core/tests/vec_backend.rs +++ b/core/tests/vec_backend.rs @@ -124,10 +124,6 @@ impl Backend for VecBackend { Ok(()) } - fn get_data_file_path(&self) -> &Path { - Path::new("") - } - fn release_files(&mut self) {} fn dump_stats(&self) {} diff --git a/store/src/pmmr.rs b/store/src/pmmr.rs index 3c28e38e1a..b4f569464d 100644 --- a/store/src/pmmr.rs +++ b/store/src/pmmr.rs @@ -165,11 +165,6 @@ impl Backend for PMMRBackend { Ok(()) } - /// Return data file path - fn get_data_file_path(&self) -> &Path { - self.data_file.path() - } - /// Release underlying data files fn release_files(&mut self) { self.data_file.release();