mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-11 20:29:47 +08:00
refactor: Remove unused methods
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
#include "ui_weathercomponent.h"
|
||||
|
||||
#include <QCompleter>
|
||||
#include <QRegExpValidator>
|
||||
#include <QRegularExpression>
|
||||
#include <QStringView>
|
||||
#include <QStringBuilder>
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include <QPointer>
|
||||
#include <QtGlobal>
|
||||
#include <QApplication>
|
||||
#include <QDesktopWidget>
|
||||
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackGui::Components;
|
||||
|
||||
@@ -116,20 +116,6 @@ namespace BlackGui
|
||||
return QApplication::desktop()->screenGeometry(QApplication::desktop()).size();
|
||||
}
|
||||
|
||||
QSizeF CGuiUtility::physicalScreenSize(QWidget *currentWidget)
|
||||
{
|
||||
QScreen *s = QGuiApplication::screens().front();
|
||||
if (currentWidget)
|
||||
{
|
||||
const int sn = QApplication::desktop()->screenNumber(currentWidget);
|
||||
s = QGuiApplication::screens().at(sn);
|
||||
}
|
||||
|
||||
if (!s) { return QSizeF(); }
|
||||
const QSizeF ps1 = s->physicalSize();
|
||||
return ps1;
|
||||
}
|
||||
|
||||
namespace Private
|
||||
{
|
||||
#ifdef Q_OS_WINDOWS
|
||||
|
||||
@@ -66,10 +66,6 @@ namespace BlackGui
|
||||
//! \remark might be scaled depending on CGuiUtility::mainApplicationWidgetPixelRatio
|
||||
static QSize desktopSize();
|
||||
|
||||
//! Pysical screen resolution
|
||||
//! \remark unscaled
|
||||
static QSizeF physicalScreenSize(QWidget *currentWidget = nullptr);
|
||||
|
||||
//! Qt independent implementation
|
||||
//! \remark allows to return values before QGuiApplication is initialized
|
||||
static QSize physicalScreenSizeOs();
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include <QStringBuilder>
|
||||
#include <QStringList>
|
||||
|
||||
using namespace QtCharts;
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::Simulation;
|
||||
|
||||
|
||||
@@ -14,11 +14,6 @@ namespace Ui
|
||||
{
|
||||
class CAircraftModelStatisticsDialog;
|
||||
}
|
||||
namespace QtCharts
|
||||
{
|
||||
class QBarSeries;
|
||||
class QHorizontalBarSeries;
|
||||
}
|
||||
namespace BlackGui::Views
|
||||
{
|
||||
//! Info about the models
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
#include <QApplication>
|
||||
#include <QAction>
|
||||
#include <QDesktopWidget>
|
||||
#include <QMetaMethod>
|
||||
#include <QShortcut>
|
||||
|
||||
|
||||
@@ -46,17 +46,6 @@ namespace BlackMisc::Audio
|
||||
stringCompare(device.getMachineName(), this->getMachineName(), Qt::CaseInsensitive);
|
||||
}
|
||||
|
||||
CAudioDeviceInfo::DeviceType CAudioDeviceInfo::fromQtMode(QAudio::Mode m)
|
||||
{
|
||||
switch (m)
|
||||
{
|
||||
case QAudio::AudioInput: return InputDevice;
|
||||
case QAudio::AudioOutput: return OutputDevice;
|
||||
default: break;
|
||||
}
|
||||
return Unknown;
|
||||
}
|
||||
|
||||
CAudioDeviceInfo CAudioDeviceInfo::getDefaultOutputDevice()
|
||||
{
|
||||
return CAudioDeviceInfo(OutputDevice, QAudioDeviceInfo::defaultOutputDevice().deviceName());
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include "blackmisc/valueobject.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
|
||||
#include <QAudioDeviceInfo>
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
@@ -83,9 +82,6 @@ namespace BlackMisc::Audio
|
||||
//! Matching name, type and machine and process
|
||||
bool matchesNameTypeMachineProcess(const CAudioDeviceInfo &device) const;
|
||||
|
||||
//! Convert the Qt type
|
||||
static DeviceType fromQtMode(QAudio::Mode m);
|
||||
|
||||
//! Default output device
|
||||
static CAudioDeviceInfo getDefaultOutputDevice();
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <QPixmap>
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
#include <QSequentialIterable>
|
||||
#include <QtGlobal>
|
||||
#include <algorithm>
|
||||
#include <type_traits>
|
||||
|
||||
@@ -40,13 +40,6 @@ namespace BlackSound
|
||||
return output;
|
||||
}
|
||||
|
||||
QVector<qint16> convertFloatBytesTo16BitPCM(const QByteArray &input)
|
||||
{
|
||||
Q_UNUSED(input)
|
||||
// qFatal("Not implemented");
|
||||
return {};
|
||||
}
|
||||
|
||||
QVector<float> convertFromMonoToStereo(const QVector<float> &mono)
|
||||
{
|
||||
QVector<float> stereo;
|
||||
|
||||
@@ -19,7 +19,6 @@ namespace BlackSound
|
||||
//! Conversion functions
|
||||
BLACKSOUND_EXPORT QVector<float> convertBytesTo32BitFloatPCM(const QByteArray &input);
|
||||
BLACKSOUND_EXPORT QVector<qint16> convertBytesTo16BitPCM(const QByteArray &input);
|
||||
BLACKSOUND_EXPORT QVector<qint16> convertFloatBytesTo16BitPCM(const QByteArray &input);
|
||||
BLACKSOUND_EXPORT QVector<float> convertFromMonoToStereo(const QVector<float> &mono);
|
||||
BLACKSOUND_EXPORT QVector<qint16> convertFromStereoToMono(const QVector<qint16> &stereo);
|
||||
BLACKSOUND_EXPORT QVector<float> convertFromShortToFloat(const QVector<qint16> &input);
|
||||
|
||||
Reference in New Issue
Block a user