From 0f347c04bf1305c634b761f92ff487e831bc564c Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel.grandin@collabora.co.uk>
Date: Thu, 22 Jun 2017 10:17:49 +0200
Subject: loplugin:unusedfields in registry..sax

Change-Id: Ie0e2ecaadb49273cb4e78bc894111523940e7c8e
Reviewed-on: https://gerrit.libreoffice.org/39098
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
---
 registry/source/reflread.cxx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'registry')

diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index de22f988984e..343943516490 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -861,7 +861,6 @@ class MethodList : public BlopObject
 public:
 
     sal_uInt16      m_numOfEntries;
-    sal_uInt16      m_numOfMethodEntries;
     sal_uInt16      m_numOfParamEntries;
     size_t          m_PARAM_ENTRY_SIZE;
     std::unique_ptr<sal_uInt32[]>  m_pIndex;
@@ -874,12 +873,11 @@ public:
     {
         if ( m_numOfEntries > 0 )
         {
-            m_numOfMethodEntries = readUINT16(0);
+            readUINT16(0) /* numOfMethodEntries */;
             m_numOfParamEntries = readUINT16(sizeof(sal_uInt16));
             m_PARAM_ENTRY_SIZE = m_numOfParamEntries * sizeof(sal_uInt16);
         } else
         {
-            m_numOfMethodEntries = 0;
             m_numOfParamEntries = 0;
             m_PARAM_ENTRY_SIZE = 0;
         }
-- 
cgit