@@ -503,31 +503,10 @@ fn link_staticlib(sess: &Session,
503
503
if !all_native_libs. is_empty ( ) {
504
504
if sess. opts . prints . contains ( & PrintRequest :: NativeStaticLibs ) {
505
505
print_native_static_libs ( sess, & all_native_libs) ;
506
- } else {
507
- // Fallback for backwards compatibility only
508
- print_native_static_libs_legacy ( sess, & all_native_libs) ;
509
506
}
510
507
}
511
508
}
512
509
513
- fn print_native_static_libs_legacy ( sess : & Session , all_native_libs : & [ NativeLibrary ] ) {
514
- sess. note_without_error ( "link against the following native artifacts when linking against \
515
- this static library") ;
516
- sess. note_without_error ( "This list will not be printed by default. \
517
- Please add --print=native-static-libs if you need this information") ;
518
-
519
- for lib in all_native_libs. iter ( ) . filter ( |l| relevant_lib ( sess, l) ) {
520
- let name = match lib. kind {
521
- NativeLibraryKind :: NativeStaticNobundle |
522
- NativeLibraryKind :: NativeUnknown => "library" ,
523
- NativeLibraryKind :: NativeFramework => "framework" ,
524
- // These are included, no need to print them
525
- NativeLibraryKind :: NativeStatic => continue ,
526
- } ;
527
- sess. note_without_error ( & format ! ( "{}: {}" , name, lib. name) ) ;
528
- }
529
- }
530
-
531
510
fn print_native_static_libs ( sess : & Session , all_native_libs : & [ NativeLibrary ] ) {
532
511
let lib_args: Vec < _ > = all_native_libs. iter ( )
533
512
. filter ( |l| relevant_lib ( sess, l) )
0 commit comments