@@ -330,16 +330,13 @@ pub struct SealCommitPhase2Output {
330
330
pub proof : Vec < u8 > ,
331
331
}
332
332
333
- /// Ensure that any persisted cached data for specified sector size is discarded.
333
+ /// Ensure that any persisted cached data is discarded.
334
334
///
335
335
/// # Arguments
336
336
///
337
- /// * `sector_size` - Sector size associated with cache data to clear.
338
337
/// * `cache_path` - Path to directory where cached data is stored.
339
- pub fn clear_cache ( sector_size : u64 , cache_path : & Path ) -> Result < ( ) > {
340
- use filecoin_proofs_v1:: clear_cache;
341
-
342
- with_shape ! ( sector_size, clear_cache, cache_path)
338
+ pub fn clear_cache ( cache_path : & Path ) -> Result < ( ) > {
339
+ filecoin_proofs_v1:: clear_cache ( cache_path)
343
340
}
344
341
345
342
/// Generate and persist synthetic Merkle tree proofs for sector replica. Must be called with output from [`seal_pre_commit_phase2`].
@@ -424,12 +421,9 @@ fn generate_synth_proofs_inner<Tree: 'static + MerkleTreeTrait>(
424
421
///
425
422
/// # Arguments
426
423
///
427
- /// * `sector_size` - Sector size associated with cache data to clear.
428
424
/// * `cache_path` - Path to directory where cached data is stored.
429
- pub fn clear_synthetic_proofs ( sector_size : u64 , cache_path : & Path ) -> Result < ( ) > {
430
- use filecoin_proofs_v1:: clear_synthetic_proofs;
431
-
432
- with_shape ! ( sector_size, clear_synthetic_proofs, cache_path)
425
+ pub fn clear_synthetic_proofs ( cache_path : & Path ) -> Result < ( ) > {
426
+ filecoin_proofs_v1:: clear_synthetic_proofs ( cache_path)
433
427
}
434
428
435
429
/// First step in sector sealing process. Called before [`seal_pre_commit_phase2`].
0 commit comments