From: Florian Ragwitz Date: Sun, 13 Dec 2009 22:08:32 +0000 (+0100) Subject: Remove leftovers of export_to_main. X-Git-Tag: 0.93_01~39 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=05cde4e88a86e1a723584ee4235bdc26c5101339;p=gitmo%2FMoose.git Remove leftovers of export_to_main. --- diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index 60fbbfc..1f4ff04 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -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 ); diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index 7d8d44e..b6fa18e 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -49,7 +49,6 @@ Moose::Exporter->setup_import_methods( register_type_constraint match_on_type ) ], - _export_to_main => 1, ); ## --------------------------------------------------------