cleanup: remove unused global variable filesOnCommandLine
Last user was removed in 0a92823af64c76b165ddd2c1bddadd01a5fc6b56. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
29d71eb85e
commit
c53cdf039b
@ -27,7 +27,6 @@
|
|||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
static bool filesOnCommandLine = false;
|
|
||||||
static void validateGL();
|
static void validateGL();
|
||||||
static void messageHandler(QtMsgType type, const QMessageLogContext &ctx, const QString &msg);
|
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();
|
MainWindow *m = MainWindow::instance();
|
||||||
filesOnCommandLine = !files.isEmpty() || !importedFiles.isEmpty();
|
|
||||||
if (verbose && !files.isEmpty())
|
if (verbose && !files.isEmpty())
|
||||||
qDebug() << "loading dive data from" << files;
|
qDebug() << "loading dive data from" << files;
|
||||||
m->loadFiles(files);
|
m->loadFiles(files);
|
||||||
|
|||||||
@ -20,7 +20,6 @@
|
|||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
static bool filesOnCommandLine = false;
|
|
||||||
static void messageHandler(QtMsgType type, const QMessageLogContext &ctx, const QString &msg);
|
static void messageHandler(QtMsgType type, const QMessageLogContext &ctx, const QString &msg);
|
||||||
extern void cliDownloader(const char *vendor, const char *product, const char *device);
|
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);
|
files.push_back(cloudURL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
filesOnCommandLine = !files.isEmpty() || !importedFiles.isEmpty();
|
|
||||||
if (!files.isEmpty()) {
|
if (!files.isEmpty()) {
|
||||||
qDebug() << "loading dive data from" << files;
|
qDebug() << "loading dive data from" << files;
|
||||||
if (parse_file(qPrintable(files.first()), &divelog) < 0) {
|
if (parse_file(qPrintable(files.first()), &divelog) < 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user