Remove unused internal flag from raster painting engine

Just a leftover from code that has been replaced long ago.

Task-number: QTBUG-95237
Pick-to: 6.3 6.2 5.15
Change-Id: I8b1b0f319683ecfb2c93cc51a047616fe29770f7
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
Eirik Aavitsland 2021-09-09 12:37:13 +02:00 committed by Allan Sandfeld Jensen
parent b076e84a7f
commit 61a136bf26
2 changed files with 0 additions and 27 deletions

View File

@ -526,31 +526,6 @@ void QRasterPaintEngine::updateMatrix(const QTransform &matrix)
QRasterPaintEngineState *s = state();
// FALCON: get rid of this line, see drawImage call below.
s->matrix = matrix;
QTransform::TransformationType txop = s->matrix.type();
switch (txop) {
case QTransform::TxNone:
s->flags.int_xform = true;
break;
case QTransform::TxTranslate:
s->flags.int_xform = qreal(int(s->matrix.dx())) == s->matrix.dx()
&& qreal(int(s->matrix.dy())) == s->matrix.dy();
break;
case QTransform::TxScale:
s->flags.int_xform = qreal(int(s->matrix.dx())) == s->matrix.dx()
&& qreal(int(s->matrix.dy())) == s->matrix.dy()
&& qreal(int(s->matrix.m11())) == s->matrix.m11()
&& qreal(int(s->matrix.m22())) == s->matrix.m22();
break;
default: // shear / perspective...
s->flags.int_xform = false;
break;
}
s->flags.tx_noshear = qt_scaleForTransform(s->matrix, &s->txscale);
ensureOutlineMapper();
@ -582,7 +557,6 @@ QRasterPaintEngineState::QRasterPaintEngineState()
flags.antialiased = false;
flags.bilinear = false;
flags.fast_text = true;
flags.int_xform = true;
flags.tx_noshear = true;
flags.fast_images = true;

View File

@ -110,7 +110,6 @@ public:
uint antialiased : 1;
uint bilinear : 1;
uint fast_text : 1;
uint int_xform : 1;
uint tx_noshear : 1;
uint fast_images : 1;
};