Commit 439e7b97 authored by Albert Astals Cid's avatar Albert Astals Cid

remove unused variables

svn path=/trunk/KDE/kdegraphics/okular/; revision=1230896
parent 64b8965b
......@@ -553,9 +553,7 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
// queryLeft is the length of the query we have left
const TinyTextEntity* curEntity = 0;
int j=query.length() - 1, len=0, queryLeft=query.length();
int offset = 0;
bool haveMatch=false;
bool dontIncrement=false;
bool offsetMoved = false;
TextList::ConstIterator it = start;
TextList::ConstIterator it_begin;
......@@ -565,10 +563,6 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
const QString &str = curEntity->text();
if ( !offsetMoved && ( it == start ) )
{
if ( m_searchPoints.contains( searchID ) )
{
offset = qMax( m_searchPoints[ searchID ]->offset_begin, 0 );
}
offsetMoved = true;
}
if ( query.at(j).isSpace() )
......@@ -579,14 +573,9 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
#endif
j--;
queryLeft--;
// since we do not really need to increment this after this
// run of the loop finishes because we are not comparing it
// to any entity, rather we are deducing a situation in a document
dontIncrement=true;
}
else
{
dontIncrement=false;
len=str.length();
int min=qMin(queryLeft,len);
#ifdef DEBUG_TEXTPAGE
......@@ -609,7 +598,6 @@ RegularAreaRect* TextPagePrivate::findTextInternalBackward( int searchID, const
kDebug(OkularDebug) << "\tnot matched";
#endif
j=query.length() - 1;
offset = 0;
queryLeft=query.length();
it_begin = TextList::ConstIterator();
}
......
......@@ -480,17 +480,11 @@ void fontPool::mf_output_receiver()
// We'd like to print only full lines of text.
int numleft;
bool show_prog = false;
while( (numleft = MetafontOutput.indexOf('\n')) != -1) {
QString line = MetafontOutput.left(numleft+1);
#ifdef DEBUG_FONTPOOL
kDebug(kvs::dvi) << "MF OUTPUT RECEIVED: " << line;
#endif
// Search for a line which marks the beginning of a MetaFont run
// and show the progress dialog at the end of this method.
if (line.indexOf("kpathsea:") == 0)
show_prog = true;
// If the Output of the kpsewhich program contains a line starting
// with "kpathsea:", this means that a new MetaFont-run has been
// started. We filter these lines out and update the display
......
......@@ -666,7 +666,6 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
mixedPainter->translate( -crop.left, -crop.top );
QColor normalColor = QApplication::palette().color( QPalette::Active, QPalette::Highlight );
QColor lightColor = normalColor.light( 140 );
// enlarging limits for intersection is like growing the 'rectGeometry' below
QRect limitsEnlarged = limits;
limitsEnlarged.adjust( -2, -2, 2, 2 );
......
......@@ -1500,7 +1500,6 @@ void PageView::mouseMoveEvent( QMouseEvent * e )
{
const QRect & itemRect = pageItem->uncroppedGeometry();
QPoint newpos = eventPos - itemRect.topLeft();
Okular::NormalizedRect r = d->mouseAnn->boundingRectangle();
QPoint p( newpos - d->mouseAnnPos );
QPointF pf( rotateInRect( p, pageItem->page()->rotation() ) );
if ( pageItem->page()->rotation() % 2 == 0 )
......
......@@ -136,7 +136,6 @@ void PageViewItem::setWHZC( int w, int h, double z, const Okular:: NormalizedRec
m_croppedGeometry.setHeight( h );
m_zoomFactor = z;
m_crop = c;
QRect scaledCrop = c.geometry( w, h );
m_uncroppedGeometry.setWidth( qRound( w / ( c.right - c.left ) ) );
m_uncroppedGeometry.setHeight( qRound( h / ( c.bottom - c.top ) ) );
foreach(FormWidgetIface *fwi, m_formWidgets)
......
......@@ -407,7 +407,6 @@ bool ThumbnailList::canUnloadPixmap( int pageNumber ) const
void ThumbnailList::updateWidgets()
{
// find all widgets that intersects the viewport and update them
const QRect viewportRect = viewport()->rect().translated( viewport()->pos() );
QList<ThumbnailWidget *>::const_iterator vIt = d->m_visibleThumbnails.constBegin(), vEnd = d->m_visibleThumbnails.constEnd();
for ( ; vIt != vEnd; ++vIt )
{
......@@ -791,7 +790,6 @@ void ThumbnailListPrivate::mouseMoveEvent( QMouseEvent * e )
if ( !m_mouseGrabItem )
return e->ignore();
const QRect r = m_mouseGrabItem->rect();
const QPoint p = e->pos() - m_mouseGrabItem->pos();
if ( !m_mouseGrabPos.isNull() )
{
const QPoint mousePos = e->pos();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment