Cleanup dead code and unused var in BakerCLI

This commit is contained in:
Ryan Huffman 2017-12-07 10:54:39 -08:00
parent 94a58a2471
commit 4dd08d93f4
2 changed files with 3 additions and 2 deletions
tools/oven/src

View file

@ -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();

View file

@ -13,6 +13,7 @@
#define hifi_BakeWidget_h
#include <QtWidgets/QWidget>
#include <memory>
#include <Baker.h>