mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 18:55:38 +08:00
Removed unused code.
This commit is contained in:
@@ -180,30 +180,6 @@ namespace XSwiftBus
|
||||
return XPMPDrawingAircraftLabels();
|
||||
}
|
||||
|
||||
void CTraffic::updateInstalledModels()
|
||||
{
|
||||
int numberOfModels = XPMPGetNumberOfInstalledModels();
|
||||
QStringList modelNames;
|
||||
QStringList icaos;
|
||||
QStringList airlines;
|
||||
QStringList liveries;
|
||||
|
||||
for (int i = 0; i < numberOfModels; ++i)
|
||||
{
|
||||
const char *modelName = nullptr;
|
||||
const char *icao = nullptr;
|
||||
const char *airline = nullptr;
|
||||
const char *livery = nullptr;
|
||||
XPMPGetModelInfo(i, &modelName, &icao, &airline, &livery);
|
||||
modelNames.append(QString::fromLocal8Bit(modelName));
|
||||
icaos.append(QString::fromLocal8Bit(icao));
|
||||
airlines.append(QString::fromLocal8Bit(airline));
|
||||
liveries.append(QString::fromLocal8Bit(livery));
|
||||
}
|
||||
|
||||
emit installedModelsUpdated(modelNames, icaos, airlines, liveries);
|
||||
}
|
||||
|
||||
void CTraffic::setMaxPlanes(int planes)
|
||||
{
|
||||
g_maxPlanes = planes;
|
||||
|
||||
@@ -65,10 +65,6 @@ namespace XSwiftBus
|
||||
//! Called by XPluginStart
|
||||
static void initLegacyData();
|
||||
|
||||
signals:
|
||||
//! Installed models updated.
|
||||
void installedModelsUpdated(const QStringList &modelStrings, const QStringList &icaos, const QStringList &airlines, const QStringList &liveries);
|
||||
|
||||
public slots:
|
||||
//! Initialize the multiplayer planes rendering and return true if successful
|
||||
bool initialize();
|
||||
@@ -88,9 +84,6 @@ namespace XSwiftBus
|
||||
//! Get whether the plugin draws type and callsign labels above aircraft
|
||||
bool isDrawingLabels() const;
|
||||
|
||||
//! Called by newly connected client to cause installedModelsUpdated to be emitted.
|
||||
void updateInstalledModels();
|
||||
|
||||
//! Set the maximum number of aircraft.
|
||||
void setMaxPlanes(int planes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user