@@ -64,36 +64,6 @@ pub fn clear_cache<Tree>(cache_dir: &Path) -> Result<()> {
64
64
result
65
65
}
66
66
67
- // TODO vmx 2023-09-26: The `Tree` generic is not needed, it's only there in order to not breaking
68
- // the public API. Once we break the API, remove that generic.
69
- // Ensure that any associated cached data persisted is discarded.
70
- pub fn clear_caches < Tree : MerkleTreeTrait > (
71
- replicas : & BTreeMap < SectorId , PrivateReplicaInfo < Tree > > ,
72
- ) -> Result < ( ) > {
73
- info ! ( "clear_caches:start" ) ;
74
-
75
- for replica in replicas. values ( ) {
76
- clear_cache :: < Tree > ( replica. cache_dir . as_path ( ) ) ?;
77
- }
78
-
79
- info ! ( "clear_caches:finish" ) ;
80
-
81
- Ok ( ( ) )
82
- }
83
-
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
-
97
67
// TODO vmx 2023-09-26: The `Tree` generic is not needed, it's only there in order to not breaking
98
68
// the public API. Once we break the API, remove that generic.
99
69
// Ensure that any persisted vanilla proofs generated from synthetic porep are discarded.
0 commit comments