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.
|
||||
|
||||
@@ -716,7 +716,6 @@ protected:
|
||||
void UnsupportedFeature(const char* format, args&&... argValues);
|
||||
|
||||
private:
|
||||
std::map<std::string, std::pair<int, int>> m_unsupportedFeaturesNoted;
|
||||
std::string m_CodePage; // Code Page name from $DWGCODEPAGE or null if none/not read yet
|
||||
// The following was going to be python's canonical name for the encoding, but this is (a) not
|
||||
// easily found and (b) does not speed up finding the encoding object.
|
||||
|
||||
Reference in New Issue
Block a user