summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-21 16:15:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-04 12:52:35 +0200
commit9f4421039a40f385489cb2f3ad8a1b02fb32251c (patch)
tree4a5c4b5bb46484e1a9963f4ea7db9cdc23f5d0a4 /sc/inc
parent998532d8542b87b4069416ca48d1fc90e8d8ed70 (diff)
loplugin:unusedfields in sc part3
Change-Id: I7323e8644e5d336d52fa21b063264b0847b5e780 Reviewed-on: https://gerrit.libreoffice.org/39064 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/AccessibleFilterMenu.hxx5
-rw-r--r--sc/inc/AccessibleFilterMenuItem.hxx3
-rw-r--r--sc/inc/colcontainer.hxx3
-rw-r--r--sc/inc/compiler.hxx1
-rw-r--r--sc/inc/dociter.hxx3
-rw-r--r--sc/inc/dpoutput.hxx1
-rw-r--r--sc/inc/fillinfo.hxx4
-rw-r--r--sc/inc/hints.hxx3
-rw-r--r--sc/inc/viewuno.hxx1
9 files changed, 3 insertions, 21 deletions
diff --git a/sc/inc/AccessibleFilterMenu.hxx b/sc/inc/AccessibleFilterMenu.hxx
index fe3c42afca83..c206e96f62bf 100644
--- a/sc/inc/AccessibleFilterMenu.hxx
+++ b/sc/inc/AccessibleFilterMenu.hxx
@@ -119,9 +119,8 @@ public:
/// non-UNO methods
- void appendMenuItem(const OUString& rName, bool bEnabled, size_t nMenuPos);
+ void appendMenuItem(const OUString& rName, size_t nMenuPos);
void setMenuPos(size_t nMenuPos);
- void setEnabled(bool bEnabled);
protected:
@@ -142,8 +141,6 @@ private:
size_t mnMenuPos;
VclPtr<ScMenuFloatingWindow> mpWindow;
-
- bool mbEnabled:1;
};
#endif
diff --git a/sc/inc/AccessibleFilterMenuItem.hxx b/sc/inc/AccessibleFilterMenuItem.hxx
index 06fbc8a2d6db..cefb095c004e 100644
--- a/sc/inc/AccessibleFilterMenuItem.hxx
+++ b/sc/inc/AccessibleFilterMenuItem.hxx
@@ -75,8 +75,6 @@ public:
/// Non-UNO Methods
- void setEnabled(bool bEnabled);
-
protected:
virtual tools::Rectangle GetBoundingBoxOnScreen() const override;
@@ -92,7 +90,6 @@ private:
VclPtr<ScMenuFloatingWindow> mpWindow;
size_t mnMenuPos;
- bool mbEnabled;
};
#endif
diff --git a/sc/inc/colcontainer.hxx b/sc/inc/colcontainer.hxx
index 92fff8f4a42e..3e97ed048f4d 100644
--- a/sc/inc/colcontainer.hxx
+++ b/sc/inc/colcontainer.hxx
@@ -32,10 +32,9 @@ class ScColContainer
{
typedef std::vector<ScColumn*> ScColumnVector;
ScColumnVector aCols;
- ScDocument* pDocument;
public:
- ScColContainer( ScDocument* pDoc, const size_t nSize );
+ ScColContainer( const size_t nSize );
~ScColContainer() COVERITY_NOEXCEPT_FALSE;
const ScColumn& operator[] ( const size_t nIndex ) const
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx
index 9c35ff4b1b82..78c51264c41c 100644
--- a/sc/inc/compiler.hxx
+++ b/sc/inc/compiler.hxx
@@ -281,7 +281,6 @@ private:
const CharClass* pCharClass; // which character classification is used for parseAnyToken
sal_uInt16 mnPredetectedReference; // reference when reading ODF, 0 (none), 1 (single) or 2 (double)
- SCTAB nMaxTab; // last sheet in document
sal_Int32 mnRangeOpPosInSymbol; // if and where a range operator is in symbol
const Convention *pConv;
ExtendedErrorDetection meExtendedErrorDetection;
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx
index b0270c44f907..25c09d6599c1 100644
--- a/sc/inc/dociter.hxx
+++ b/sc/inc/dociter.hxx
@@ -165,7 +165,6 @@ private:
ScDBQueryParamMatrix* mpParam;
SCROW mnCurRow;
SCROW mnRows;
- SCCOL mnCols;
};
::std::unique_ptr<ScDBQueryParamBase> mpParam;
@@ -422,8 +421,6 @@ class ScHorizontalCellIterator // walk through all non empty cells in an ar
SCCOL nEndCol;
SCROW nStartRow;
SCROW nEndRow;
- SCROW* pNextRows;
- SCSIZE* pNextIndices;
SCCOL mnCol;
SCROW mnRow;
ScRefCellValue maCurCell;
diff --git a/sc/inc/dpoutput.hxx b/sc/inc/dpoutput.hxx
index 3e99e0e40d93..cf9e25dab7e6 100644
--- a/sc/inc/dpoutput.hxx
+++ b/sc/inc/dpoutput.hxx
@@ -76,7 +76,6 @@ private:
SCROW nTabEndRow;
bool bDoFilter:1;
bool bResultsError:1;
- bool mbHasDataLayout:1;
bool bSizesValid:1;
bool bSizeOverflow:1;
bool mbHeaderLayout:1; // true : grid, false : standard
diff --git a/sc/inc/fillinfo.hxx b/sc/inc/fillinfo.hxx
index e02ebd1ed070..2fb74585b557 100644
--- a/sc/inc/fillinfo.hxx
+++ b/sc/inc/fillinfo.hxx
@@ -114,9 +114,7 @@ struct CellInfo
, nClipMark(ScClipMark::NONE)
, nWidth(0)
, nRotateDir(ScRotateDir::NONE)
- , bMarked(false)
, bEmptyCellText(false)
- , bMerged(false)
, bHOverlapped(false)
, bVOverlapped(false)
, bAutoFilter(false)
@@ -157,7 +155,6 @@ struct CellInfo
sal_uInt16 nWidth;
ScRotateDir nRotateDir;
- bool bMarked : 1;
bool bEmptyCellText : 1;
bool bMerged : 1;
bool bHOverlapped : 1;
@@ -185,7 +182,6 @@ struct RowInfo
SCCOL nRotMaxCol; // SC_ROTMAX_NONE, if nothing
bool bEmptyBack:1;
- bool bEmptyText:1;
bool bAutoFilter:1;
bool bPivotButton:1;
bool bChanged:1; // TRUE, if not tested
diff --git a/sc/inc/hints.hxx b/sc/inc/hints.hxx
index 2ffb689bb67b..7dc6dbfa3a56 100644
--- a/sc/inc/hints.hxx
+++ b/sc/inc/hints.hxx
@@ -78,7 +78,6 @@ class ScLinkRefreshedHint : public SfxHint
OUString aDdeAppl; // used for dde links:
OUString aDdeTopic;
OUString aDdeItem;
- sal_uInt8 nDdeMode;
ScAddress aDestPos; // used to identify area links
//! also use source data for area links?
@@ -87,7 +86,7 @@ public:
virtual ~ScLinkRefreshedHint() override;
void SetSheetLink( const OUString& rSourceUrl );
- void SetDdeLink( const OUString& rA, const OUString& rT, const OUString& rI, sal_uInt8 nM );
+ void SetDdeLink( const OUString& rA, const OUString& rT, const OUString& rI );
void SetAreaLink( const ScAddress& rPos );
ScLinkRefType GetLinkType() const { return nLinkType; }
diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx
index 49c936e99c24..839219677d4b 100644
--- a/sc/inc/viewuno.hxx
+++ b/sc/inc/viewuno.hxx
@@ -166,7 +166,6 @@ private:
void EndMouseListening();
void EndActivationListening();
bool mbLeftMousePressed;
- bool mbPendingSelectionChanged;
public:
ScTabViewObj(ScTabViewShell* pViewSh);
ScTabViewObj() = delete;