Skip to content

Commit

Permalink
Remove dead code (siemens#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
mPokornyETM authored Jan 8, 2024
1 parent 268eb92 commit c24f885
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 613 deletions.
57 changes: 0 additions & 57 deletions WinCCOA_QualityChecks/scripts/QgTemplate.ctl

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

#uses "classes/FileSys/QgDir"
#uses "classes/QualityGates/Qg"
#uses "classes/QualityGates/QgApp"
#uses "classes/QualityGates/AddOn/FileSys/QgAddOnSourceDir"

class QgAddOnResultsDir
{
Expand Down Expand Up @@ -102,16 +100,8 @@ class QgAddOnResultsDir
{
if (_resultDir == "")
{
if (!Qg::isRunningOnJenkins())
{
// projPath should be used, when Jenkins is not used
_resultDir = makeNativePath(PROJ_PATH + DATA_REL_PATH + "QualityGates/" + _qgId + "/" + _buildNo + "/");
}
else
{
QgApp app = QgApp::getAppFromProjName(PROJ);
_resultDir = makeNativePath(app.getSourcePath() + "QgResult/" + Qg::getId() + "/");
}
// result are stored in porject directory
_resultDir = makeNativePath(PROJ_PATH + DATA_REL_PATH + "QualityGates/" + _qgId + "/" + _buildNo + "/");
}

return _resultDir;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class Qg
}

//------------------------------------------------------------------------------
/** @deprecated
@todo Eliminatig this function will allow removing a lot unused code,
probably used by store.
*/
public static bool isRunningOnJenkins()
{
return (getenv("WORKSPACE") != "");
Expand Down
Loading

0 comments on commit c24f885

Please sign in to comment.