Deparse: remove special casing for main stash
authorFather Chrysostomos <sprout@cpan.org>
Fri, 23 Dec 2011 16:43:22 +0000 (08:43 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 23 Dec 2011 20:58:22 +0000 (12:58 -0800)
This was to prevent infinite recursion, but the previous commit
added a more general mechanism, rendering this redundant.

dist/B-Deparse/Deparse.pm

index 31fb376..d68da12 100644 (file)
@@ -522,9 +522,7 @@ sub stash_subs {
                $self->todo($cv, 1);
            }
            if (class($val->HV) ne "SPECIAL" && $key =~ /::$/) {
-               $self->stash_subs($pack . $key, $seen)
-                   unless $pack eq '' && $key eq 'main::';
-                   # avoid infinite recursion
+               $self->stash_subs($pack . $key, $seen);
            }
        }
     }