File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,6 @@ use std::fs;
234
234
use std:: io:: { self , Read } ;
235
235
use std:: ops:: Deref ;
236
236
use std:: path:: { Path , PathBuf } ;
237
- use std:: time:: Instant ;
238
237
239
238
use flate2:: read:: DeflateDecoder ;
240
239
@@ -940,19 +939,6 @@ impl<'a> CrateLocator<'a> {
940
939
}
941
940
}
942
941
943
- // Just a small wrapper to time how long reading metadata takes.
944
- fn get_metadata_section (
945
- target : & Target ,
946
- flavor : CrateFlavor ,
947
- filename : & Path ,
948
- loader : & dyn MetadataLoader ,
949
- ) -> Result < MetadataBlob , String > {
950
- let start = Instant :: now ( ) ;
951
- let ret = get_metadata_section_imp ( target, flavor, filename, loader) ;
952
- info ! ( "reading {:?} => {:?}" , filename. file_name( ) . unwrap( ) , start. elapsed( ) ) ;
953
- ret
954
- }
955
-
956
942
/// A trivial wrapper for `Mmap` that implements `StableDeref`.
957
943
struct StableDerefMmap ( memmap:: Mmap ) ;
958
944
@@ -966,7 +952,7 @@ impl Deref for StableDerefMmap {
966
952
967
953
unsafe impl stable_deref_trait:: StableDeref for StableDerefMmap { }
968
954
969
- fn get_metadata_section_imp (
955
+ fn get_metadata_section (
970
956
target : & Target ,
971
957
flavor : CrateFlavor ,
972
958
filename : & Path ,
You can’t perform that action at this time.
0 commit comments