remove unused and internal QPaintEngine::fix_neg_rect()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-08-03 02:06:40 +03:00
parent bc299e7af0
commit ef993f1657
2 changed files with 0 additions and 21 deletions

View file

@ -572,12 +572,6 @@ void QPaintEngine::drawImage(const QRectF &r, const QImage &image, const QRectF
Reimplement this function to return the paint engine \l{Type}.
*/
/*!
\fn void QPaintEngine::fix_neg_rect(int *x, int *y, int *w, int *h);
\internal
*/
/*!
\fn bool QPaintEngine::testDirty(DirtyFlags df)

View file

@ -185,8 +185,6 @@ public:
};
virtual Type type() const = 0;
inline void fix_neg_rect(int *x, int *y, int *w, int *h);
inline bool testDirty(DirtyFlags df);
inline void setDirty(DirtyFlags df);
inline void clearDirty(DirtyFlags df);
@ -264,19 +262,6 @@ protected:
//
// inline functions
//
inline void QPaintEngine::fix_neg_rect(int *x, int *y, int *w, int *h)
{
if (*w < 0) {
*w = -*w;
*x -= *w - 1;
}
if (*h < 0) {
*h = -*h;
*y -= *h - 1;
}
}
inline bool QPaintEngine::testDirty(DirtyFlags df) {
Q_ASSERT(state);
return ((state->dirtyFlags & df) != 0);