From ac02282ae7ff9a3c90cd0a0a98824cf9f257f1b6 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Wed, 19 Aug 2020 17:11:50 +0100 Subject: [PATCH] Remove dead code --- src/blackgui/components/downloadcomponent.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/blackgui/components/downloadcomponent.cpp b/src/blackgui/components/downloadcomponent.cpp index 4fafe490e..f9efbd30b 100644 --- a/src/blackgui/components/downloadcomponent.cpp +++ b/src/blackgui/components/downloadcomponent.cpp @@ -310,23 +310,8 @@ namespace BlackGui return; } - QStringList arguments; - if (rf.isSwiftInstaller()) - { - /** installer now remembers install dir - QDir dir(QCoreApplication::applicationDirPath()); - dir.cdUp(); - if (dir.exists()) - { - const QString d(dir.absolutePath()); - arguments << "--installdir"; - arguments << d; - } - **/ - } - const bool shutdown = ui->cb_Shutdown->isChecked(); - const bool started = QProcess::startDetached(executable, arguments, dir.absolutePath()); + const bool started = QProcess::startDetached(executable, {}, dir.absolutePath()); if (started && shutdown && sGui) { QTimer::singleShot(250, sGui, []