diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-21 13:10:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-22 06:42:19 +0000 |
commit | c1877a16b38bfd74a52e39b49289d5f5572b610b (patch) | |
tree | aac6e79a4fc26a520ef1cd097bea7ba25d695695 /libreofficekit | |
parent | f0c7cbe1d8505d3c1f5a2b2253efda35542c898b (diff) |
loplugin:unusedfields
Change-Id: I8a114bcda99f123d230d61b0d0595bfe657cc3c0
Reviewed-on: https://gerrit.libreoffice.org/34513
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 6 | ||||
-rw-r--r-- | libreofficekit/source/gtk/tilebuffer.hxx | 8 |
2 files changed, 4 insertions, 10 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index b85447353985..1effc335aed4 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -969,8 +969,7 @@ static gboolean postDocumentLoad(gpointer pData) // Total number of columns in this document. guint nColumns = ceil((double)nDocumentWidthPixels / nTileSizePixels); - priv->m_pTileBuffer = std::unique_ptr<TileBuffer>(new TileBuffer(priv->m_pDocument, - nColumns)); + priv->m_pTileBuffer = std::unique_ptr<TileBuffer>(new TileBuffer(nColumns)); gtk_widget_set_size_request(GTK_WIDGET(pLOKDocView), nDocumentWidthPixels, nDocumentHeightPixels); @@ -3289,8 +3288,7 @@ lok_doc_view_set_zoom (LOKDocView* pDocView, float fZoom) // Total number of columns in this document. guint nColumns = ceil((double)nDocumentWidthPixels / nTileSizePixels); - priv->m_pTileBuffer = std::unique_ptr<TileBuffer>(new TileBuffer(priv->m_pDocument, - nColumns)); + priv->m_pTileBuffer = std::unique_ptr<TileBuffer>(new TileBuffer(nColumns)); gtk_widget_set_size_request(GTK_WIDGET(pDocView), nDocumentWidthPixels, nDocumentHeightPixels); diff --git a/libreofficekit/source/gtk/tilebuffer.hxx b/libreofficekit/source/gtk/tilebuffer.hxx index 4fab28dab891..498ea3fecd65 100644 --- a/libreofficekit/source/gtk/tilebuffer.hxx +++ b/libreofficekit/source/gtk/tilebuffer.hxx @@ -90,10 +90,8 @@ private: class TileBuffer { public: - TileBuffer(LibreOfficeKitDocument *document = nullptr, - int columns = 0) - : m_pLOKDocument(document) - , m_nWidth(columns) + TileBuffer(int columns = 0) + : m_nWidth(columns) { cairo_surface_t *pSurface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, nTileSizePixels, nTileSizePixels); m_DummyTile.setSurface(pSurface); @@ -135,8 +133,6 @@ class TileBuffer */ void setInvalid(int x, int y, float zoom, GTask* task, GThreadPool*); - /// Contains the reference to the LOK Document that this tile buffer is for. - LibreOfficeKitDocument *m_pLOKDocument; /// Stores all the tiles cached by this tile buffer. std::map<int, Tile> m_mTiles; /// Width of the current tile buffer (number of columns) |