From 52ee9b9285f04551cfdcbde2b3b6293a706ca982 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 18 Feb 2010 16:14:51 -0800 Subject: Lift the error method into Wallet::Kadmin Take advantage of inheritance by providing the error method in Wallet::Kadmin rather than separately in both the subclasses. --- perl/Wallet/Kadmin/MIT.pm | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'perl/Wallet/Kadmin/MIT.pm') diff --git a/perl/Wallet/Kadmin/MIT.pm b/perl/Wallet/Kadmin/MIT.pm index a7ccf99..9dc101e 100644 --- a/perl/Wallet/Kadmin/MIT.pm +++ b/perl/Wallet/Kadmin/MIT.pm @@ -31,18 +31,6 @@ $VERSION = '0.02'; # Utility functions ############################################################################## -# Set or return the error stashed in the object. -sub error { - my ($self, @error) = @_; - if (@error) { - my $error = join ('', @error); - chomp $error; - 1 while ($error =~ s/ at \S+ line \d+\.?\z//); - $self->{error} = $error; - } - return $self->{error}; -} - # Set a callback to be called for forked kadmin processes. sub fork_callback { my ($self, $callback) = @_; -- cgit v1.2.3