Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
grulja committed Oct 2, 2024
1 parent 697a8b1 commit 09f8787
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 350 deletions.
2 changes: 0 additions & 2 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ set(MEDIAWRITER_SRCS
notifications.cpp
portalfiledialog.cpp
releasemanager.cpp
units.cpp
utilities.cpp
versionchecker.cpp
)

if (UNIX AND NOT APPLE)
Expand Down
18 changes: 1 addition & 17 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,14 @@
*/

#include <QApplication>
#include <QDebug>
#include <QElapsedTimer>
#include <QLoggingCategory>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#include <QScreen>
#include <QStandardPaths>
#include <QTranslator>
#include <QtPlugin>

#include "crashhandler.h"
#include "drivemanager.h"
#include "portalfiledialog.h"
#include "releasemanager.h"
#include "units.h"
#include "versionchecker.h"

int main(int argc, char **argv)
{
Expand All @@ -59,7 +50,7 @@ int main(int argc, char **argv)
mDebug() << "Application constructed";

QTranslator translator;
if (translator.load(QLocale(QLocale().language(), QLocale().country()), QLatin1String(), QLatin1String(), ":/translations"))
if (translator.load(QLocale(), QLatin1String(), QLatin1String(), ":/translations"))
app.installTranslator(&translator);

QGuiApplication::setDesktopFileName("org.fedoraproject.MediaWriter.desktop");
Expand All @@ -72,13 +63,6 @@ int main(int argc, char **argv)
engine.rootContext()->setContextProperty("portalFileDialog", new PortalFileDialog(&app));
engine.rootContext()->setContextProperty("mediawriterVersion", MEDIAWRITER_VERSION);
engine.rootContext()->setContextProperty("releases", new ReleaseManager());
engine.rootContext()->setContextProperty("units", Units::instance());
engine.rootContext()->setContextProperty("versionChecker", new VersionChecker());
#if (defined(__linux) || defined(_WIN32))
engine.rootContext()->setContextProperty("platformSupportsDelayedWriting", true);
#else
engine.rootContext()->setContextProperty("platformSupportsDelayedWriting", false);
#endif

mDebug() << "Loading the QML source code";

Expand Down
117 changes: 0 additions & 117 deletions src/app/units.cpp

This file was deleted.

62 changes: 0 additions & 62 deletions src/app/units.h

This file was deleted.

99 changes: 0 additions & 99 deletions src/app/versionchecker.cpp

This file was deleted.

53 changes: 0 additions & 53 deletions src/app/versionchecker.h

This file was deleted.

0 comments on commit 09f8787

Please sign in to comment.