Remove unused variables

remotes/origin/Applications/18.12
Albert Astals Cid 7 years ago
parent fe5d79bb9f
commit ec692e459b
  1. 2
      autotests/mainshelltest.cpp
  2. 3
      core/document.cpp
  3. 2
      generators/chm/lib/ebook.cpp
  4. 2
      generators/dvi/generator_dvi.cpp
  5. 1
      part.cpp
  6. 1
      ui/pageview.cpp

@ -251,7 +251,6 @@ void MainShellTest::testShell()
{ {
if (useTabs) if (useTabs)
{ {
QSet<QString> openUrls;
Shell *s = findShell(); Shell *s = findShell();
QVERIFY(s); QVERIFY(s);
Okular::Part *part = dynamic_cast<Okular::Part*>(s->m_tabs[0].part); Okular::Part *part = dynamic_cast<Okular::Part*>(s->m_tabs[0].part);
@ -474,7 +473,6 @@ void MainShellTest::test2FilesError()
Okular::Status status = Okular::main(paths, serializedOptions); Okular::Status status = Okular::main(paths, serializedOptions);
QCOMPARE(status, Okular::Error); QCOMPARE(status, Okular::Error);
QSet<QString> openUrls;
Shell *s = findShell(); Shell *s = findShell();
QVERIFY(!s); QVERIFY(!s);
} }

@ -563,7 +563,6 @@ bool DocumentPrivate::loadDocumentInfo( QFile &infoFile, LoadDocumentInfoFlags l
if ( root.tagName() != QLatin1String("documentInfo") ) if ( root.tagName() != QLatin1String("documentInfo") )
return false; return false;
QUrl documentUrl( root.attribute( "url" ) );
bool loadedAnything = false; // set if something gets actually loaded bool loadedAnything = false; // set if something gets actually loaded
// Parse the DOM tree // Parse the DOM tree
@ -1580,8 +1579,6 @@ void DocumentPrivate::refreshPixmaps( int pageNumber )
PixmapRequest * p = new PixmapRequest( observer, pageNumber, tilesManager->width() / qApp->devicePixelRatio(), tilesManager->height() / qApp->devicePixelRatio(), 1, PixmapRequest::Asynchronous ); PixmapRequest * p = new PixmapRequest( observer, pageNumber, tilesManager->width() / qApp->devicePixelRatio(), tilesManager->height() / qApp->devicePixelRatio(), 1, PixmapRequest::Asynchronous );
NormalizedRect tilesRect;
// Get the visible page rect // Get the visible page rect
NormalizedRect visibleRect; NormalizedRect visibleRect;
QVector< Okular::VisiblePageRect * >::const_iterator vIt = m_pageRects.constBegin(), vEnd = m_pageRects.constEnd(); QVector< Okular::VisiblePageRect * >::const_iterator vIt = m_pageRects.constBegin(), vEnd = m_pageRects.constEnd();

@ -20,8 +20,6 @@
#include "ebook_chm.h" #include "ebook_chm.h"
#include "ebook_epub.h" #include "ebook_epub.h"
const char * const INTERNAL_URL_SCHEME = "kchm";
EBook::EBook() EBook::EBook()
{ {
} }

@ -286,7 +286,6 @@ Okular::TextPage *DviGenerator::extractTextFromPage( dviPageInfo *pageInfo )
QVector<TextBox>::ConstIterator it = pageInfo->textBoxList.constBegin(); QVector<TextBox>::ConstIterator it = pageInfo->textBoxList.constBegin();
QVector<TextBox>::ConstIterator itEnd = pageInfo->textBoxList.constEnd(); QVector<TextBox>::ConstIterator itEnd = pageInfo->textBoxList.constEnd();
QRect tmpRect;
int pageWidth = pageInfo->width, pageHeight = pageInfo->height; int pageWidth = pageInfo->width, pageHeight = pageInfo->height;
@ -297,7 +296,6 @@ Okular::TextPage *DviGenerator::extractTextFromPage( dviPageInfo *pageInfo )
#if 0 #if 0
qCDebug(OkularDviDebug) << "orientation: " << orientation qCDebug(OkularDviDebug) << "orientation: " << orientation
<< ", curTB.box: " << curTB.box << ", curTB.box: " << curTB.box
<< ", tmpRect: " << tmpRect
<< ", ( " << pageWidth << "," << pageHeight << " )" << ", ( " << pageWidth << "," << pageHeight << " )"
<<endl; <<endl;
#endif #endif

@ -822,7 +822,6 @@ void Part::setViewerShortcuts()
void Part::setupActions() void Part::setupActions()
{ {
KActionCollection * ac = actionCollection(); KActionCollection * ac = actionCollection();
QMimeDatabase db;
m_copy = KStandardAction::create( KStandardAction::Copy, m_pageView, SLOT(copyTextSelection()), ac ); m_copy = KStandardAction::create( KStandardAction::Copy, m_pageView, SLOT(copyTextSelection()), ac );

@ -4477,7 +4477,6 @@ void PageView::slotRelayoutPages()
viewportHeight = viewport()->height(), viewportHeight = viewport()->height(),
fullWidth = 0, fullWidth = 0,
fullHeight = 0; fullHeight = 0;
QRect viewportRect( horizontalScrollBar()->value(), verticalScrollBar()->value(), viewportWidth, viewportHeight );
// handle the 'center first page in row' stuff // handle the 'center first page in row' stuff
const bool facing = Okular::Settings::viewMode() == Okular::Settings::EnumViewMode::Facing && pageCount > 1; const bool facing = Okular::Settings::viewMode() == Okular::Settings::EnumViewMode::Facing && pageCount > 1;

Loading…
Cancel
Save