From c53cdf039bba8698e752a2b7d59870e059598b19 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 25 Mar 2024 07:08:22 +0100 Subject: [PATCH] cleanup: remove unused global variable filesOnCommandLine Last user was removed in 0a92823af64c76b165ddd2c1bddadd01a5fc6b56. Signed-off-by: Berthold Stoeger --- subsurface-desktop-main.cpp | 2 -- subsurface-downloader-main.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp index 57a4c3eda..da843913c 100644 --- a/subsurface-desktop-main.cpp +++ b/subsurface-desktop-main.cpp @@ -27,7 +27,6 @@ #include #include -static bool filesOnCommandLine = false; static void validateGL(); static void messageHandler(QtMsgType type, const QMessageLogContext &ctx, const QString &msg); @@ -96,7 +95,6 @@ int main(int argc, char **argv) } } MainWindow *m = MainWindow::instance(); - filesOnCommandLine = !files.isEmpty() || !importedFiles.isEmpty(); if (verbose && !files.isEmpty()) qDebug() << "loading dive data from" << files; m->loadFiles(files); diff --git a/subsurface-downloader-main.cpp b/subsurface-downloader-main.cpp index 6fe159e06..c4b7d6ba9 100644 --- a/subsurface-downloader-main.cpp +++ b/subsurface-downloader-main.cpp @@ -20,7 +20,6 @@ #include #include -static bool filesOnCommandLine = false; static void messageHandler(QtMsgType type, const QMessageLogContext &ctx, const QString &msg); extern void cliDownloader(const char *vendor, const char *product, const char *device); @@ -90,7 +89,6 @@ int main(int argc, char **argv) files.push_back(cloudURL); } } - filesOnCommandLine = !files.isEmpty() || !importedFiles.isEmpty(); if (!files.isEmpty()) { qDebug() << "loading dive data from" << files; if (parse_file(qPrintable(files.first()), &divelog) < 0) {