Remove unused property from PixmapObject

This property was added before the tiles manager was created.
remotes/origin/KDE/4.10
Mailson Menezes 14 years ago
parent 2d5b51ff88
commit 0053b9c015
  1. 9
      core/page.cpp
  2. 1
      core/page_p.h

@ -236,13 +236,7 @@ bool Page::hasPixmap( int id, int width, int height, const NormalizedRect &rect
const QPixmap *pixmap = it.value().m_pixmap; const QPixmap *pixmap = it.value().m_pixmap;
if ( pixmap->width() != width || pixmap->height() != height ) return (pixmap->width() == width && pixmap->height() == height);
return false;
if ( rect.isNull() )
return true;
return (rect == it.value().m_rect);
} }
bool Page::hasTextPage() const bool Page::hasTextPage() const
@ -522,7 +516,6 @@ void Page::setPixmap( int id, QPixmap *pixmap, const NormalizedRect &rect )
it = d->m_pixmaps.insert( id, PagePrivate::PixmapObject() ); it = d->m_pixmaps.insert( id, PagePrivate::PixmapObject() );
} }
it.value().m_pixmap = pixmap; it.value().m_pixmap = pixmap;
it.value().m_rect = rect;
it.value().m_rotation = d->m_rotation; it.value().m_rotation = d->m_rotation;
} else { } else {
RotationJob *job = new RotationJob( pixmap->toImage(), Rotation0, d->m_rotation, id ); RotationJob *job = new RotationJob( pixmap->toImage(), Rotation0, d->m_rotation, id );

@ -107,7 +107,6 @@ class PagePrivate
{ {
public: public:
QPixmap *m_pixmap; QPixmap *m_pixmap;
NormalizedRect m_rect;
Rotation m_rotation; Rotation m_rotation;
}; };
QMap< int, PixmapObject > m_pixmaps; QMap< int, PixmapObject > m_pixmaps;

Loading…
Cancel
Save