Remove leftovers of export_to_main.
Florian Ragwitz [Sun, 13 Dec 2009 22:08:32 +0000 (23:08 +0100)]
lib/Moose/Exporter.pm
lib/Moose/Util/TypeConstraints.pm

index 60fbbfc..1f4ff04 100644 (file)
@@ -49,11 +49,8 @@ sub build_import_methods {
     );
 
     my %methods;
-    # $args{_export_to_main} exists for backwards compat, because
-    # Moose::Util::TypeConstraints did export to main (unlike Moose &
-    # Moose::Role).
     $methods{import} = $class->_make_import_sub( $exporting_package,
-        $exporter, \@exports_from, $args{_export_to_main} );
+        $exporter, \@exports_from );
 
     $methods{unimport} = $class->_make_unimport_sub( $exporting_package,
         $exports, $is_removable, $export_recorder );
index 7d8d44e..b6fa18e 100644 (file)
@@ -49,7 +49,6 @@ Moose::Exporter->setup_import_methods(
             register_type_constraint
             match_on_type )
     ],
-    _export_to_main => 1,
 );
 
 ## --------------------------------------------------------