From: Moritz Bunkus Date: Tue, 10 Oct 2017 08:01:48 +0000 (+0200) Subject: SL::DBUpgrade2: unbenutzte Funktion `update2_available` entfernen X-Git-Tag: release-3.5.4~723 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/8085e7b197b102ca265a1598ef808c35f894ba6d?hp=1f0d7da266e23a443c47aaa2dbab844e6be50ee4 SL::DBUpgrade2: unbenutzte Funktion `update2_available` entfernen --- diff --git a/SL/DBUpgrade2.pm b/SL/DBUpgrade2.pm index fea216800..b47e84ebb 100644 --- a/SL/DBUpgrade2.pm +++ b/SL/DBUpgrade2.pm @@ -320,14 +320,6 @@ sub unapplied_upgrade_scripts { return grep { !$_->{applied} } @all_scripts; } -sub update2_available { - my ($self, $dbh) = @_; - - my @unapplied_scripts = $self->unapplied_upgrade_scripts($dbh); - - return !!@unapplied_scripts; -} - sub apply_admin_dbupgrade_scripts { my ($self, $called_from_admin) = @_; @@ -657,14 +649,6 @@ to the database that is checked. Requires that the scripts have been parsed. -=item C - -Returns trueish if at least one upgrade script hasn't been applied to -a database yet. C<$dbh> is an open handle to the database that is -checked. - -Requires that the scripts have been parsed. - =back =head1 BUGS