From 4dd08d93f4a2a013f30f8d85937a401647421854 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 7 Dec 2017 10:54:39 -0800 Subject: [PATCH] Cleanup dead code and unused var in BakerCLI --- tools/oven/src/BakerCLI.cpp | 4 ++-- tools/oven/src/ui/BakeWidget.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/oven/src/BakerCLI.cpp b/tools/oven/src/BakerCLI.cpp index eee92d7295..5af65c4dc0 100644 --- a/tools/oven/src/BakerCLI.cpp +++ b/tools/oven/src/BakerCLI.cpp @@ -42,7 +42,7 @@ void BakerCLI::bakeFile(QUrl inputUrl, const QString& outputPath, const QString& } // check what kind of baker we should be creating - bool isFBX = extension == MODEL_EXTENSION;//inputUrl.toDisplayString().endsWith(MODEL_EXTENSION, Qt::CaseInsensitive); + bool isFBX = extension == MODEL_EXTENSION; bool isSupportedImage = QImageReader::supportedImageFormats().contains(extension.toLatin1()); @@ -75,7 +75,7 @@ void BakerCLI::handleFinishedBaker() { exitCode = OVEN_STATUS_CODE_ABORT; } else if (_baker->hasErrors()) { exitCode = OVEN_STATUS_CODE_FAIL; - QFile errorFile { _outputPath.absoluteFilePath("errors.txt") }; + QFile errorFile { _outputPath.absoluteFilePath(OVEN_ERROR_FILENAME) }; if (errorFile.open(QFile::WriteOnly)) { errorFile.write(_baker->getErrors().join('\n').toUtf8()); errorFile.close(); diff --git a/tools/oven/src/ui/BakeWidget.h b/tools/oven/src/ui/BakeWidget.h index d71bd71252..34cced537a 100644 --- a/tools/oven/src/ui/BakeWidget.h +++ b/tools/oven/src/ui/BakeWidget.h @@ -13,6 +13,7 @@ #define hifi_BakeWidget_h #include + #include #include