X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FExporter.pm;h=4646a1fb6f6beb965c7421649300b5e26ae1530a;hb=61fcd0dad2a4b4bc1f616b95b9c162597098503a;hp=910456c0beaad62a4831801001c17d0b32db2f06;hpb=9b9e4b6566015d6d6e2aa6c745644174efa74623;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Exporter.pm b/lib/Mouse/Exporter.pm index 910456c..4646a1f 100644 --- a/lib/Mouse/Exporter.pm +++ b/lib/Mouse/Exporter.pm @@ -161,11 +161,6 @@ sub do_import { $^H |= _strict_bits; # strict->import; ${^WARNING_BITS} = $warnings::Bits{all}; # warnings->import; - if($into eq 'main' && !$spec->{_export_to_main}){ - warn qq{$package does not export its sugar to the 'main' package.\n}; - return; - } - if($spec->{INIT_META}){ foreach my $init_meta(@{$spec->{INIT_META}}){ $into->$init_meta(for_class => $into);