Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Unused code #28

Closed
garnier-quentin opened this issue Apr 12, 2016 · 0 comments
Closed

Unused code #28

garnier-quentin opened this issue Apr 12, 2016 · 0 comments
Milestone

Comments

@garnier-quentin
Copy link
Contributor

In the following commented code is not used:

sub cleanEmptyMacros($$) {
    my ($dbh, $dbh2) = @_;

    #my $sth = $dbhS->prepare("SELECT * from mod_dsm_locks");
    #if (!defined($sth)) {
    #    writeLogFile($DBI::errstr, "EE");
    #}
    #my @locks;
    #if ($sth->execute()) {
    #    while (my $lock = $sth->fetchrow_hashref()) {
    #        $locks[$lock->{'host_name'}.";".$lock->{'service_description'}] = 1;
    #    }
    #    $sth->finish();
    #}

The table '@locks' is used like a hash table ???!! In fact, the table is never used anywhere else in the code.

Another variable is not used: '@fullHostList'. Should be removed.

@julienmathis julienmathis modified the milestone: 2.1 Apr 14, 2016
@lpinsivy lpinsivy modified the milestones: 2.2, 2.1 Jul 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants