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

Fix: Remove obsolete code in Criticality class #11783

Merged

Conversation

emabassi-ext
Copy link
Contributor

Description

The getHostTplCriticities called itself but is not called by Centreon or modules.

File: www/class/centreonCriticality.class.php

Remove function getHostTplCriticities

Fixes # MON-14972

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

Target serie

  • 21.04.x
  • 21.10.x
  • 22.04.x
  • 22.10.x (master)

How this pull request can be tested ?

no tests fo this PR ## Checklist

Community contributors & Centreon team

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially new classes, functions or any legacy code modified. (docblock)
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (master, maintenance).

www/class/centreonCriticality.class.php Outdated Show resolved Hide resolved
}
}
return null;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you have to remove line break in line 361

@sonarqube-decoration
Copy link

@emabassi-ext emabassi-ext merged commit f1053a2 into develop Sep 20, 2022
@emabassi-ext emabassi-ext deleted the MON-14972-remove-obsolete-code-in-criticality-class branch September 20, 2022 12:59
emabassi-ext added a commit that referenced this pull request Sep 21, 2022
* remove obsolete function getHostTplCriticality in criticality class

* Update www/class/centreonCriticality.class.php

Co-authored-by: TamazC <103252125+TamazC@users.noreply.github.com>
emabassi-ext added a commit that referenced this pull request Sep 21, 2022
* remove obsolete function getHostTplCriticality in criticality class

* Update www/class/centreonCriticality.class.php

Co-authored-by: TamazC <103252125+TamazC@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants