mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
29d71eb85e
commit
c53cdf039b
2 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue