summaryrefslogtreecommitdiff
path: root/perl/Wallet/Kadmin/MIT.pm
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2010-02-18 16:14:51 -0800
committerRuss Allbery <rra@stanford.edu>2010-02-18 16:14:51 -0800
commit52ee9b9285f04551cfdcbde2b3b6293a706ca982 (patch)
treee1c6515bbfd41499a8f74f7a1efec0b1a5c34d76 /perl/Wallet/Kadmin/MIT.pm
parentae9db60c9b9601f66b34b564b80bbcfbe41301e1 (diff)
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.
Diffstat (limited to 'perl/Wallet/Kadmin/MIT.pm')
-rw-r--r--perl/Wallet/Kadmin/MIT.pm12
1 files changed, 0 insertions, 12 deletions
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) = @_;