@@ -253,40 +253,6 @@ impl AsyncStorage {
253
253
}
254
254
}
255
255
256
- /// Fetch a rustdoc file from our blob storage.
257
- /// * `name` - the crate name
258
- /// * `version` - the crate version
259
- /// * `latest_build_id` - the id of the most recent build. used purely to invalidate the local archive
260
- /// index cache, when `archive_storage` is `true.` Without it we wouldn't know that we have
261
- /// to invalidate the locally cached file after a rebuild.
262
- /// * `path` - the wanted path inside the documentation.
263
- /// * `archive_storage` - if `true`, we will assume we have a remove ZIP archive and an index
264
- /// where we can fetch the requested path from inside the ZIP file.
265
- #[ instrument]
266
- pub ( crate ) async fn fetch_rustdoc_file (
267
- & self ,
268
- name : & str ,
269
- version : & str ,
270
- latest_build_id : Option < BuildId > ,
271
- path : & str ,
272
- archive_storage : bool ,
273
- ) -> Result < Blob > {
274
- trace ! ( "fetch rustdoc file" ) ;
275
- Ok ( if archive_storage {
276
- self . get_from_archive (
277
- & rustdoc_archive_path ( name, version) ,
278
- latest_build_id,
279
- path,
280
- self . max_file_size_for ( path) ,
281
- )
282
- . await ?
283
- } else {
284
- // Add rustdoc prefix, name and version to the path for accessing the file stored in the database
285
- let remote_path = format ! ( "rustdoc/{name}/{version}/{path}" ) ;
286
- self . get ( & remote_path, self . max_file_size_for ( path) ) . await ?
287
- } )
288
- }
289
-
290
256
/// Fetch a rustdoc file from our blob storage.
291
257
/// * `name` - the crate name
292
258
/// * `version` - the crate version
@@ -840,23 +806,6 @@ impl Storage {
840
806
. block_on ( self . inner . set_public_access ( path, public) )
841
807
}
842
808
843
- pub ( crate ) fn fetch_rustdoc_file (
844
- & self ,
845
- name : & str ,
846
- version : & str ,
847
- latest_build_id : Option < BuildId > ,
848
- path : & str ,
849
- archive_storage : bool ,
850
- ) -> Result < Blob > {
851
- self . runtime . block_on ( self . inner . fetch_rustdoc_file (
852
- name,
853
- version,
854
- latest_build_id,
855
- path,
856
- archive_storage,
857
- ) )
858
- }
859
-
860
809
pub ( crate ) fn fetch_source_file (
861
810
& self ,
862
811
name : & str ,
0 commit comments