From: Mark Wells Date: Thu, 24 Apr 2014 23:17:03 +0000 (-0700) Subject: fix duplicate DESTROY routine X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f697781408c7e1b27d7bab73095d707e9c50933e fix duplicate DESTROY routine --- diff --git a/FS/FS/Cursor.pm b/FS/FS/Cursor.pm index 6d02a16ad..469a678d5 100644 --- a/FS/FS/Cursor.pm +++ b/FS/FS/Cursor.pm @@ -108,12 +108,6 @@ sub DESTROY { dbh->do('CLOSE '. $self->{id}) or die dbh->errstr; # clean-up the cursor in Pg } -sub DESTROY { - my $self = shift; - my $statement = "CLOSE ".$self->{id}; - dbh->do($statement); -} - =back =head1 TO DO