Skip to content

Commit

Permalink
Removed unneded logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kmkristof committed Jul 7, 2024
1 parent 4a18189 commit e8720ec
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions plugins/cpp_metrics/parser/src/cppmetricsparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ void CppMetricsParser::checkTypes(
{
++relationsInModule;
relationsFoundInFile.emplace(item.filePath, item.typeHash);
LOG(info) << item.filePath;
LOG(info) << relationsInModule;
}
}
}
Expand Down Expand Up @@ -253,10 +251,6 @@ void CppMetricsParser::relationalCohesion()

for (const auto& path : modulePaths)
{

LOG(info) << "looking at module:";
LOG(info) << path;

typesFound.clear();
typeDefinitionPaths.clear();
// Find the types defined in the module
Expand All @@ -267,20 +261,8 @@ void CppMetricsParser::relationalCohesion()
{
// Save types defined inside the module
typesFound.insert(record.typeHash);
LOG(info) << "typesFound incremented with: ";
LOG(info) << record.qualifiedName;
LOG(info) << record.typeHash;
// Save where the type is defined to avoid self relation
typeDefinitionPaths.insert(std::make_pair(record.typeHash, record.filePath));

LOG(info) << "Content of types found:";

for (auto &&i : typesFound)
{
LOG(info) << i;
}


}

// Store the type relations already found for each file
Expand Down Expand Up @@ -331,9 +313,6 @@ void CppMetricsParser::relationalCohesion()

uint numberOfTypesInModule = typesFound.size(); //N

LOG(info) << relationsInModule;
LOG(info) << numberOfTypesInModule;

double relationalCohesion =
(static_cast<double>(relationsInModule) + 1.0) / static_cast<double>(numberOfTypesInModule);

Expand Down

0 comments on commit e8720ec

Please sign in to comment.