Commit 2382f356 authored by Alexis Lebis's avatar Alexis Lebis

fix duplicata of function

parent 4dbd523c
...@@ -145,16 +145,3 @@ void CompetencyDistribution::linearDistribution(CSDVP &pb) ...@@ -145,16 +145,3 @@ void CompetencyDistribution::linearDistribution(CSDVP &pb)
} }
std::cout << CompetencyDistribution::HLEVEL.at(CompetencyDistribution::HLEVEL.size()-1) << "]" << std::endl << std::endl; std::cout << CompetencyDistribution::HLEVEL.at(CompetencyDistribution::HLEVEL.size()-1) << "]" << std::endl << std::endl;
} }
std::vector<Competency> CompetencyDistribution::compsAtHLevel(CSDVP & pb, int level)
{
std::vector<Competency> res;
for(int i = 0; i < pb.cfg_quantityCompetencies(); i++)
{
if(pb.competencyCatalogue().at(i).hLevel() == level)
res.push_back(pb.competencyCatalogue().at(i));
}
return res;
}
\ No newline at end of file
...@@ -41,7 +41,6 @@ class CompetencyDistribution ...@@ -41,7 +41,6 @@ class CompetencyDistribution
*/ */
static void sanitizeHLEVEL(); static void sanitizeHLEVEL();
static void displayHLevel(); static void displayHLevel();
static std::vector<Competency> compsAtHLevel(CSDVP &, int level);
}; };
......
...@@ -503,7 +503,7 @@ void const CSDVP::displayDistribution(){ ...@@ -503,7 +503,7 @@ void const CSDVP::displayDistribution(){
for(int i = 0; i < CompetencyDistribution::HLEVEL.size(); i++) for(int i = 0; i < CompetencyDistribution::HLEVEL.size(); i++)
{ {
std::cout << "\tAssigned in HL#" << i <<": " << CompetencyDistribution::compsAtHLevel(*this, i).size() << std::endl; std::cout << "\tAssigned in HL#" << i <<": " << CompetencyDistribution::getHLevel(*this, i).size() << std::endl;
} }
std::cout << "Distrib:" << std::endl; std::cout << "Distrib:" << std::endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment