Commit 0034448d2ed3c53ffc16939d369e7a30c9b8f0cc

Authored by Josh Klontz
1 parent 7685e92f

fixed some unused variable warnings

openbr/core/eval.cpp
@@ -303,7 +303,6 @@ float InplaceEval(const QString & simmat, const QString & target, const QString @@ -303,7 +303,6 @@ float InplaceEval(const QString & simmat, const QString & target, const QString
303 303
304 // Check format 304 // Check format
305 QByteArray format = file.readLine(); 305 QByteArray format = file.readLine();
306 - bool isDistance = (format[0] == 'D');  
307 if (format[1] != '2') qFatal("Invalid matrix header."); 306 if (format[1] != '2') qFatal("Invalid matrix header.");
308 307
309 // Read sigset names, we dont' care if they are valid, just want to advance the file pointer. 308 // Read sigset names, we dont' care if they are valid, just want to advance the file pointer.
@@ -319,15 +318,11 @@ float InplaceEval(const QString & simmat, const QString & target, const QString @@ -319,15 +318,11 @@ float InplaceEval(const QString & simmat, const QString & target, const QString
319 qint64 typeSize = isMask ? sizeof(BEE::Mask_t) : sizeof(BEE::Simmat_t); 318 qint64 typeSize = isMask ? sizeof(BEE::Mask_t) : sizeof(BEE::Simmat_t);
320 319
321 // Get matrix data 320 // Get matrix data
322 - qint64 bytesExpected = rows*cols*typeSize;  
323 -  
324 qint64 rowSize = cols * typeSize; 321 qint64 rowSize = cols * typeSize;
325 322
326 // after reading the header, we are at the start of the matrix data 323 // after reading the header, we are at the start of the matrix data
327 qint64 data_pos = file.pos(); 324 qint64 data_pos = file.pos();
328 325
329 - qint64 totalSize = data_pos + bytesExpected;  
330 -  
331 // Map each unique label to a list of positions in the gallery 326 // Map each unique label to a list of positions in the gallery
332 QMap<QString, QList<qint64> > galleryIndices; 327 QMap<QString, QList<qint64> > galleryIndices;
333 328
openbr/plugins/misc.cpp
@@ -703,7 +703,7 @@ class FileExclusionTransform : public UntrainableMetaTransform @@ -703,7 +703,7 @@ class FileExclusionTransform : public UntrainableMetaTransform
703 703
704 QSet<QString> excluded; 704 QSet<QString> excluded;
705 705
706 - void project(const Template & src, Template & dst) const 706 + void project(const Template &, Template &) const
707 { 707 {
708 qFatal("FileExclusion can't do anything here"); 708 qFatal("FileExclusion can't do anything here");
709 } 709 }