Skip to content

Commit 0b5325e

Browse files
authored
fix: remove clear_layer_data call (#95)
The `clear_layer_data` call was accidentally introduced with the Synthetic PoRep. The call does under the hood exactly what `clear_cache` is doing. It was already removed from the FFI via [PR 436], so that we can remove it here as well. This reduces the API surface, which is generally a good idea. [PR 436]: filecoin-project/filecoin-ffi#436 BREAKING CHANGE: `clear_layer_data` was removed, use `clear_cache` instead.
1 parent bdc9a59 commit 0b5325e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/seal.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -420,18 +420,6 @@ fn generate_synth_proofs_inner<Tree: 'static + MerkleTreeTrait>(
420420
)
421421
}
422422

423-
/// Ensure that any persisted layers are discarded.
424-
///
425-
/// # Arguments
426-
///
427-
/// * `sector_size` - Sector size associated with cache data to clear.
428-
/// * `cache_path` - Path to directory where cached data is stored.
429-
pub fn clear_layer_data(sector_size: u64, cache_path: &Path) -> Result<()> {
430-
use filecoin_proofs_v1::clear_layer_data;
431-
432-
with_shape!(sector_size, clear_layer_data, cache_path)
433-
}
434-
435423
/// Ensure that any persisted synthetic proofs are discarded.
436424
///
437425
/// # Arguments

0 commit comments

Comments
 (0)