cleanup: remove unused global variable filesOnCommandLine

Last user was removed in 0a92823af6.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-25 07:08:22 +01:00 committed by Dirk Hohndel
parent 29d71eb85e
commit c53cdf039b
2 changed files with 0 additions and 4 deletions

View file

@ -27,7 +27,6 @@
#include <QStringList>
#include <git2.h>
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);

View file

@ -20,7 +20,6 @@
#include <QStringList>
#include <git2.h>
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) {