Import: DXF parser, remove original unsupported features count and warning
This commit is contained in:
@@ -2404,12 +2404,6 @@ void CDxfRead::UnsupportedFeature(const char* format, args&&... argValuess)
|
||||
// NOLINTNEXTLINE(runtime/printf)
|
||||
std::string formattedMessage = fmt::sprintf(format, std::forward<args>(argValuess)...);
|
||||
m_stats.unsupportedFeatures[formattedMessage]++;
|
||||
// *** This message is now disabled here because we use the stats reporter instead ***
|
||||
// We place these formatted messages in a map, count their occurrences and not their first
|
||||
// occurrence.
|
||||
// if (m_unsupportedFeaturesNoted[formattedMessage].first++ == 0) {
|
||||
// m_unsupportedFeaturesNoted[formattedMessage].second = m_line;
|
||||
// }
|
||||
}
|
||||
|
||||
bool CDxfRead::get_next_record()
|
||||
@@ -2730,17 +2724,6 @@ void CDxfRead::DoRead(const bool ignore_errors /* = false */)
|
||||
}
|
||||
}
|
||||
FinishImport();
|
||||
|
||||
// Flush out any unsupported features messages
|
||||
if (!m_unsupportedFeaturesNoted.empty()) {
|
||||
ImportError("Unsupported DXF features:\n");
|
||||
for (auto& featureInfo : m_unsupportedFeaturesNoted) {
|
||||
ImportError("%s: %d time(s) first at line %d\n",
|
||||
featureInfo.first,
|
||||
featureInfo.second.first,
|
||||
featureInfo.second.second);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
// This catches specific FreeCAD exceptions and re-throws them.
|
||||
|
||||
Reference in New Issue
Block a user