mainapp: remove log to vs console

This should be added directly to the logger in jamid.

Change-Id: I5cc2d1b8e2767325d8228964bcc27c266d12ad43
This commit is contained in:
Andreas Traczyk
2022-03-14 13:58:10 -04:00
parent 8a486a6484
commit bef42fb1ce
2 changed files with 0 additions and 19 deletions

View File

@@ -77,19 +77,6 @@ ScreenInfo::setCurrentFocusWindow(QWindow* window)
}
}
void
MainApplication::vsConsoleDebug()
{
#ifdef _MSC_VER
// Print debug to output window if using VS.
QObject::connect(&lrcInstance_->behaviorController(),
&lrc::api::BehaviorController::debugMessageReceived,
[](const QString& message) {
OutputDebugStringA((message + "\n").toStdString().c_str());
});
#endif
}
MainApplication::MainApplication(int& argc, char** argv)
: QApplication(argc, argv)
{
@@ -166,10 +153,6 @@ MainApplication::init()
[this] { engine_->quit(); },
Qt::DirectConnection);
if (runOptions_[Option::DebugToConsole].toBool()) {
vsConsoleDebug();
}
auto downloadPath = settingsManager_->getValue(Settings::Key::DownloadPath);
auto allowTransferFromUntrusted = settingsManager_->getValue(Settings::Key::AllowFromUntrusted)
.toBool();

View File

@@ -71,7 +71,6 @@ public:
enum class Option {
StartMinimized = 0,
Debug,
DebugToConsole,
UpdateUrl,
MuteJamid,
TerminationRequested,
@@ -98,7 +97,6 @@ Q_SIGNALS:
void closeRequested();
private:
void vsConsoleDebug();
void initLrc(const QString& downloadUrl, ConnectivityMonitor* cm, bool logDaemon);
void parseArguments();
void setApplicationFont();