Skip to content

Commit

Permalink
chore: remove clear_layer_data function
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
vmx committed Jan 8, 2025
1 parent 47d71fd commit af1b93d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions filecoin-proofs/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,6 @@ pub fn clear_caches<Tree: MerkleTreeTrait>(
Ok(())
}

// TODO vmx 2023-09-26: The `Tree` generic is not needed, it's only there in order to not breaking
// the public API. Once we break the API, remove that generic.
// Ensure that any persisted layer data generated from porep are discarded.
pub fn clear_layer_data<Tree>(cache_dir: &Path) -> Result<()> {
info!("clear_layer_data:start");

let result = stacked::clear_cache_dir(cache_dir);

info!("clear_layer_data:finish");

result
}

// TODO vmx 2023-09-26: The `Tree` generic is not needed, it's only there in order to not breaking
// the public API. Once we break the API, remove that generic.
// Ensure that any persisted vanilla proofs generated from synthetic porep are discarded.
Expand Down

0 comments on commit af1b93d

Please sign in to comment.