X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=quotesite.git;a=blobdiff_plain;f=quotesite%2FBase.pm;fp=quotesite%2FBase.pm;h=ccbb657b20ee74bfb5bef5bd7b7068ece753c01d;hp=08897c9a86cdd006eb651483d0560890c21d8065;hb=4e748bf6684b36a73f73312c4c694dd6d5655e84;hpb=4ddef033636a65e20cc0ff3d8fd6042d0230a783 diff --git a/quotesite/Base.pm b/quotesite/Base.pm index 08897c9..ccbb657 100644 --- a/quotesite/Base.pm +++ b/quotesite/Base.pm @@ -1,14 +1,14 @@ # (c) 2007 by Ralf Ertzinger # licensed under GNU GPL v2 -package Base; +package quotesite::Base; use strict; use Data::Dumper; sub new { my $class = shift; - my $self = {'_DEBUG' => 0, '_OUT' => sub {print shift}, '_OUTSTACK' => []}; + my $self = {'_DEBUG' => 0, '_OUT' => sub {print shift}}; bless($self, $class); @@ -91,23 +91,6 @@ sub setio { $self->{'_OUT'} = $io; } -sub pushio { - my $self = shift; - my $io = shift; - - push(@{$self->{'_OUTSTACK'}}, $self->{'_OUT'}); - $self->setio($io); -} - -sub popio { - my $self = shift; - my $io = pop(@{$self->{'_OUTSTACK'}}); - - if (defined($io)) { - $self->setio($io); - } -} - sub getconfstr { my $self = shift; my $s = 'Options for ' . $self->{'NAME'} . ":\n";