@@ -621,7 +621,7 @@ def link (self,
621621 raise NotImplementedError
622622
623623
624- # old methods, rewritten to use the new link() method.
624+ # Old 'link_*()' methods, rewritten to use the new ' link()' method.
625625
626626 def link_shared_lib (self ,
627627 objects ,
@@ -635,8 +635,6 @@ def link_shared_lib (self,
635635 extra_preargs = None ,
636636 extra_postargs = None ,
637637 build_temp = None ):
638- self .warn ("link_shared_lib(..) is deprecated, please "
639- "use link(CCompiler.SHARED_LIBRARY, ...) instead" )
640638 self .link (CCompiler .SHARED_LIBRARY , objects ,
641639 self .library_filename (output_libname , lib_type = 'shared' ),
642640 output_dir ,
@@ -657,8 +655,6 @@ def link_shared_object (self,
657655 extra_preargs = None ,
658656 extra_postargs = None ,
659657 build_temp = None ):
660- self .warn ("link_shared_object(...) is deprecated, please "
661- "use link(CCompiler.SHARED_OBJECT,...) instead." )
662658 self .link (CCompiler .SHARED_OBJECT , objects ,
663659 output_filename , output_dir ,
664660 libraries , library_dirs , runtime_library_dirs ,
@@ -676,12 +672,10 @@ def link_executable (self,
676672 debug = 0 ,
677673 extra_preargs = None ,
678674 extra_postargs = None ):
679- self .warn ("link_executable(...) is deprecated, please "
680- "use link(CCompiler.EXECUTABLE,...) instead." )
681- self .link (CCompiler .EXECUTABLE , objects ,
682- self .executable_filename (output_progname ), output_dir ,
683- libraries , library_dirs , runtime_library_dirs , None ,
684- debug , extra_preargs , extra_postargs , None )
675+ self .link (CCompiler .EXECUTABLE , objects ,
676+ self .executable_filename (output_progname ), output_dir ,
677+ libraries , library_dirs , runtime_library_dirs , None ,
678+ debug , extra_preargs , extra_postargs , None )
685679
686680
687681 # -- Miscellaneous methods -----------------------------------------
0 commit comments