Remove useless var in SchemaIterator::_iterate_files() and update module in tools.

This commit is contained in:
Daniel Nichter
2012-04-03 12:21:15 -06:00
parent 11bfeba0ea
commit 97b1209116
5 changed files with 4 additions and 6 deletions

View File

@@ -1510,7 +1510,7 @@ sub name {
sub DESTROY { sub DESTROY {
my ($self) = @_; my ($self) = @_;
if ( $self->{dbh} ) { if ( $self->{dbh} && ref($self->{dbh}) ) {
PTDEBUG && _d('Disconnecting dbh', $self->{dbh}, $self->{name}); PTDEBUG && _d('Disconnecting dbh', $self->{dbh}, $self->{name});
$self->{dbh}->disconnect(); $self->{dbh}->disconnect();
} }
@@ -4704,7 +4704,6 @@ sub next {
sub _iterate_files { sub _iterate_files {
my ( $self ) = @_; my ( $self ) = @_;
my $q = $self->{Quoter};
if ( !$self->{fh} ) { if ( !$self->{fh} ) {
my ($fh, $file) = $self->{file_itr}->(); my ($fh, $file) = $self->{file_itr}->();

View File

@@ -232,7 +232,6 @@ sub next {
sub _iterate_files { sub _iterate_files {
my ( $self ) = @_; my ( $self ) = @_;
my $q = $self->{Quoter};
if ( !$self->{fh} ) { if ( !$self->{fh} ) {
my ($fh, $file) = $self->{file_itr}->(); my ($fh, $file) = $self->{file_itr}->();