Skip to content

Commit af1b93d

Browse files
committed
chore: remove clear_layer_data function
`clear_layer_data()` isn't used within rust-fil-proofs. It was also removed from proofs-api with the merge of filecoin-project/rust-filecoin-proofs-api#95.
1 parent 47d71fd commit af1b93d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

filecoin-proofs/src/api/mod.rs

-13
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,6 @@ pub fn clear_caches<Tree: MerkleTreeTrait>(
8181
Ok(())
8282
}
8383

84-
// TODO vmx 2023-09-26: The `Tree` generic is not needed, it's only there in order to not breaking
85-
// the public API. Once we break the API, remove that generic.
86-
// Ensure that any persisted layer data generated from porep are discarded.
87-
pub fn clear_layer_data<Tree>(cache_dir: &Path) -> Result<()> {
88-
info!("clear_layer_data:start");
89-
90-
let result = stacked::clear_cache_dir(cache_dir);
91-
92-
info!("clear_layer_data:finish");
93-
94-
result
95-
}
96-
9784
// TODO vmx 2023-09-26: The `Tree` generic is not needed, it's only there in order to not breaking
9885
// the public API. Once we break the API, remove that generic.
9986
// Ensure that any persisted vanilla proofs generated from synthetic porep are discarded.

0 commit comments

Comments
 (0)