Commit e888eb27 authored by Ronan's avatar Ronan

fix(app): avoid some unused functions/variable on MacOS

parent d802577c
......@@ -60,7 +60,9 @@ namespace {
constexpr char QmlViewCallsWindow[] = "qrc:/ui/views/App/Calls/CallsWindow.qml";
constexpr char QmlViewSettingsWindow[] = "qrc:/ui/views/App/Settings/SettingsWindow.qml";
constexpr int VersionUpdateCheckInterval = 86400000; // 24 hours in milliseconds.
#ifdef ENABLE_UPDATE_CHECK
constexpr int VersionUpdateCheckInterval = 86400000; // 24 hours in milliseconds.
#endif // ifdef ENABLE_UPDATE_CHECK
constexpr char MainQmlUri[] = "Linphone";
......@@ -600,6 +602,7 @@ void App::openAppAfterInit (bool mustBeIconified) {
if (!mustBeIconified)
smartShowWindow(mainWindow);
#else
Q_UNUSED(mustBeIconified);
smartShowWindow(mainWindow);
#endif // ifndef __APPLE__
......
......@@ -142,10 +142,6 @@ static inline QString getAppFactoryConfigFilePath () {
return getAppPackageDataDirPath() + PathFactoryConfig;
}
static inline QString getAppPluginsDirPath () {
return getAppPackageDataDirPath() + PathPlugins;
}
static inline QString getAppRootCaFilePath () {
return getAppPackageDataDirPath() + PathRootCa;
}
......
......@@ -37,7 +37,9 @@
using namespace std;
namespace {
constexpr char H264Description[] = "Provided by CISCO SYSTEM,INC";
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN)
constexpr char H264Description[] = "Provided by CISCO SYSTEM,INC";
#endif // if defined(Q_OS_LINUX) || defined(Q_OS_WIN)
#ifdef Q_OS_LINUX
constexpr char LibraryExtension[] = "so";
......@@ -62,6 +64,8 @@ VideoCodecsModel::VideoCodecsModel (QObject *parent) : AbstractCodecsModel(paren
load();
}
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN)
static bool downloadUpdatableCodec (
QObject *parent,
const QString &codecsFolder,
......@@ -125,6 +129,8 @@ static bool downloadUpdatableCodec (
return true;
}
#endif // if defined(Q_OS_LINUX) || defined(Q_OS_WIN)
void VideoCodecsModel::updateCodecs () {
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN)
static const QString codecSuffix = QStringLiteral(".%1").arg(LibraryExtension);
......@@ -148,6 +154,8 @@ void VideoCodecsModel::downloadUpdatableCodecs (QObject *parent) {
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN)
QString codecsFolder = Utils::coreStringToAppString(Paths::getCodecsDirPath());
downloadUpdatableCodec(parent, codecsFolder, "H264", PluginUrlH264, H264InstallName);
#else
Q_UNUSED(parent);
#endif // if defined(Q_OS_LINUX) || defined(Q_OS_WIN)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment