summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2019-06-20 10:05:17 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2019-06-20 10:55:34 +0200
commitd7e346b58260b24e02c64f82b2900bfba5951330 (patch)
tree9dd9681d750bbb4196a1ee9fef8d2aeeb681cf72
parent8e7db0dd1cdc63c962359b37f882643dd3ed0e1a (diff)
downloadqttools-d7e346b58260b24e02c64f82b2900bfba5951330.tar.gz
distancefieldgenerator: Remove unused variable
The total allocated area was never used. Change-Id: I1aad1d4349ec94e2ccc521903b304270decd1d0d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r--src/distancefieldgenerator/mainwindow.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/distancefieldgenerator/mainwindow.cpp b/src/distancefieldgenerator/mainwindow.cpp
index a3f48cb0a..94f5c8ebb 100644
--- a/src/distancefieldgenerator/mainwindow.cpp
+++ b/src/distancefieldgenerator/mainwindow.cpp
@@ -438,7 +438,6 @@ QByteArray MainWindow::createSfntTable()
sizeof(QtdfHeader));
// Maximum height allocator to find optimal number of textures
- QRect allocatedArea;
QVector<QRect> allocatedAreaPerTexture;
struct GlyphData {
@@ -496,7 +495,6 @@ QByteArray MainWindow::createSfntTable()
rect.width(),
rect.height());
- allocatedArea |= rect;
glyphData.texCoord.xMargin = QT_DISTANCEFIELD_RADIUS(m_model->doubleGlyphResolution()) / qreal(QT_DISTANCEFIELD_SCALE(m_model->doubleGlyphResolution()));
glyphData.texCoord.yMargin = QT_DISTANCEFIELD_RADIUS(m_model->doubleGlyphResolution()) / qreal(QT_DISTANCEFIELD_SCALE(m_model->doubleGlyphResolution()));