135360
From 1241127d63bb91f6c901d32525bce8de0da7108a Mon Sep 17 00:00:00 2001
135360
From: Stephan Bergmann <sbergman@redhat.com>
135360
Date: Tue, 9 Jun 2015 11:42:41 +0200
135360
Subject: [PATCH 030/398] -Werror,-Wunused-private-field
135360
135360
Change-Id: I76cf487c66e048b5e9d0877a1b690cd066b73528
135360
(cherry picked from commit 3a1a5b9744eb73f82c28ecfaa39b54587ef8206b)
135360
---
135360
 libreofficekit/source/gtk/lokdocview.cxx | 10 +++-------
135360
 libreofficekit/source/gtk/tilebuffer.hxx |  4 ----
135360
 2 files changed, 3 insertions(+), 11 deletions(-)
135360
135360
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
135360
index 0124704d6784..90f033c80fe2 100644
135360
--- a/libreofficekit/source/gtk/lokdocview.cxx
135360
+++ b/libreofficekit/source/gtk/lokdocview.cxx
135360
@@ -274,7 +274,7 @@ LOKDocView_Impl::CallbackData::CallbackData(int nType, const std::string& rPaylo
135360
 LOKDocView_Impl::LOKDocView_Impl(LOKDocView* pDocView)
135360
     : m_pDocView(pDocView),
135360
       m_pDrawingArea(gtk_drawing_area_new()),
135360
-      m_aTileBuffer(TileBuffer(0,0,0)),
135360
+      m_aTileBuffer(TileBuffer(0,0)),
135360
       m_fZoom(1),
135360
       m_pOffice(0),
135360
       m_pDocument(0),
135360
@@ -1230,13 +1230,11 @@ SAL_DLLPUBLIC_EXPORT gboolean lok_doc_view_open_document( LOKDocView* pDocView,
135360
         long nDocumentHeightTwips = pDocView->m_pImpl->m_nDocumentHeightTwips;
135360
         long nDocumentWidthPixels = twipToPixel(nDocumentWidthTwips, zoom);
135360
         long nDocumentHeightPixels = twipToPixel(nDocumentHeightTwips, zoom);
135360
-        // Total number of rows / columns in this document.
135360
-        guint nRows = ceil((double)nDocumentHeightPixels / nTileSizePixels);
135360
+        // Total number of columns in this document.
135360
         guint nColumns = ceil((double)nDocumentWidthPixels / nTileSizePixels);
135360
 
135360
 
135360
         pDocView->m_pImpl->m_aTileBuffer = TileBuffer(pDocView->m_pImpl->m_pDocument,
135360
-                                                      nRows,
135360
                                                       nColumns);
135360
         gtk_widget_set_size_request(pDocView->m_pImpl->m_pDrawingArea,
135360
                                     nDocumentWidthPixels,
135360
@@ -1257,12 +1255,10 @@ SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_zoom ( LOKDocView* pDocView, float fZ
135360
     pDocView->m_pImpl->m_fZoom = fZoom;
135360
     long nDocumentWidthPixels = twipToPixel(pDocView->m_pImpl->m_nDocumentWidthTwips, fZoom);
135360
     long nDocumentHeightPixels = twipToPixel(pDocView->m_pImpl->m_nDocumentHeightTwips, fZoom);
135360
-    // Total number of rows / columns in this document.
135360
-    guint nRows = ceil((double)nDocumentHeightPixels / nTileSizePixels);
135360
+    // Total number of columns in this document.
135360
     guint nColumns = ceil((double)nDocumentWidthPixels / nTileSizePixels);
135360
 
135360
     pDocView->m_pImpl->m_aTileBuffer = TileBuffer(pDocView->m_pImpl->m_pDocument,
135360
-                                                  nRows,
135360
                                                   nColumns);
135360
     gtk_widget_set_size_request(pDocView->m_pImpl->m_pDrawingArea,
135360
                                 nDocumentWidthPixels,
135360
diff --git a/libreofficekit/source/gtk/tilebuffer.hxx b/libreofficekit/source/gtk/tilebuffer.hxx
135360
index ea8e52452c8d..b9bf71b950d5 100644
135360
--- a/libreofficekit/source/gtk/tilebuffer.hxx
135360
+++ b/libreofficekit/source/gtk/tilebuffer.hxx
135360
@@ -83,11 +83,9 @@ class TileBuffer
135360
 {
135360
  public:
135360
  TileBuffer(LibreOfficeKitDocument *document,
135360
-            int rows,
135360
             int columns)
135360
      : m_pLOKDocument(document)
135360
         , m_nWidth(columns)
135360
-        , m_nHeight(rows)
135360
     {  }
135360
 
135360
     ~TileBuffer() {}
135360
@@ -126,8 +124,6 @@ class TileBuffer
135360
     std::map<int, Tile> m_mTiles;
135360
     /// Width of the current tile buffer (number of columns)
135360
     int m_nWidth;
135360
-    /// Height of the current tile buffer (numbero of rows)
135360
-    int m_nHeight;
135360
 };
135360
 
135360
 #endif // INCLUDED_TILEBUFFER_HXX
135360
-- 
135360
2.12.0
135360