refactor: Remove model preview

This feature was not documented and only worked for some MS flight simulators
This commit is contained in:
Lars Toenning
2024-12-29 14:04:49 +01:00
parent cf8fc5fb8f
commit 865e7fc0ef
18 changed files with 0 additions and 177 deletions

View File

@@ -967,18 +967,6 @@ namespace swift::core::context
}
}
CPixmap CContextSimulator::iconForModel(const QString &modelString) const
{
if (!m_simulatorPlugin.second || m_simulatorPlugin.first.isUnspecified()) { return CPixmap(); }
// load from file
CStatusMessage msg;
const CAircraftModel model(this->getModelSet().findFirstByModelStringAliasOrDefault(modelString));
const CPixmap pm(model.loadIcon(msg));
if (!msg.isEmpty()) { CLogMessage::preformatted(msg); }
return pm;
}
CStatusMessageList CContextSimulator::getMatchingMessages(const CCallsign &callsign) const
{
if (isDebugEnabled()) { CLogMessage(this, CLogCategories::contextSlot()).debug() << Q_FUNC_INFO << callsign; }