#3512 System : Remove unused functions

This commit is contained in:
Magne Sjaastad
2018-10-18 15:14:25 +02:00
parent 5e25db97da
commit 766fea603e
54 changed files with 47 additions and 669 deletions

View File

@@ -50,39 +50,6 @@ void RifRestartReportKeywords::appendKeyword(const std::string& keyword, size_t
m_keywordNameAndItemCount.push_back(RifKeywordLocation(keyword, itemCount, globalIndex));
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<std::string> RifRestartReportKeywords::keywordsWithItemCountFactorOf(const std::vector<size_t>& factorCandidates)
{
std::vector<std::string> tmp;
for (auto uni : uniqueKeywords())
{
size_t sum = 0;
for (auto loc : objectsForKeyword(uni))
{
sum += loc.itemCount();
}
bool foundMatch = false;
size_t i = 0;
while (i < factorCandidates.size() && !foundMatch)
{
if (sum > 0 && (sum % factorCandidates[i]) == 0)
{
foundMatch = true;
tmp.push_back(uni);
}
i++;
}
}
return tmp;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------