summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-20 15:59:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-21 12:16:17 +0200
commit9e61a951374a3f7705de67295e406e929c603a42 (patch)
tree1e7166ddbc847e796c41fb0c0527c5d74084a6b7 /include/svtools
parent95c348afa8f4f17c058c449ded75025175af0e4a (diff)
loplugin:unusedfields in svtools
Change-Id: Ic8f67d40825d9843fd57535bd61bef51b470a8be Reviewed-on: https://gerrit.libreoffice.org/39016 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/brwbox.hxx1
-rw-r--r--include/svtools/calendar.hxx3
-rw-r--r--include/svtools/ctrlbox.hxx3
-rw-r--r--include/svtools/fileview.hxx5
-rw-r--r--include/svtools/grfmgr.hxx1
-rw-r--r--include/svtools/headbar.hxx9
-rw-r--r--include/svtools/inettbc.hxx1
-rw-r--r--include/svtools/ivctrl.hxx1
-rw-r--r--include/svtools/parhtml.hxx3
-rw-r--r--include/svtools/ruler.hxx5
-rw-r--r--include/svtools/svlbitm.hxx3
-rw-r--r--include/svtools/svtabbx.hxx2
-rw-r--r--include/svtools/tabbar.hxx1
-rw-r--r--include/svtools/valueset.hxx2
14 files changed, 7 insertions, 33 deletions
diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx
index 053d7dcc24c9..2f21d512781c 100644
--- a/include/svtools/brwbox.hxx
+++ b/include/svtools/brwbox.hxx
@@ -203,7 +203,6 @@ private:
long nDataRowHeight; // height of a single data-row
sal_uInt16 nTitleLines; // number of lines in title row
sal_uLong nControlAreaWidth; // width of fixed area beneath hscroll
- bool bThumbDragging; // handle thumb dragging
bool bColumnCursor; // single columns and fields selectable
bool bMultiSelection;// allow multiple selected rows
bool bKeepHighlight; // don't hide selection on LoseFocus
diff --git a/include/svtools/calendar.hxx b/include/svtools/calendar.hxx
index 4c190b73c157..e0c583e732a1 100644
--- a/include/svtools/calendar.hxx
+++ b/include/svtools/calendar.hxx
@@ -195,15 +195,12 @@ private:
mbDrag:1,
mbSelection:1,
mbMultiSelection:1,
- mbWeekSel:1,
mbUnSel:1,
mbMenuDown:1,
mbSpinDown:1,
mbPrevIn:1,
mbNextIn:1,
- mbDirect:1,
mbTravelSelect:1,
- mbScrollDateRange:1,
mbSelLeft:1,
mbAllSel:1,
mbDropPos:1;
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index b2179d4c5b65..7b7b68cc92d6 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -202,7 +202,6 @@ class SVT_DLLPUBLIC LineListBox : public ListBox
Size aTxtSize;
Color aColor;
Color maPaintCol;
- FieldUnit eUnit;
FieldUnit eSourceUnit;
SVT_DLLPRIVATE void ImpGetLine( long nLine1, long nLine2, long nDistance,
@@ -244,8 +243,6 @@ public:
void SelectEntry( SvxBorderLineStyle nStyle, bool bSelect = true );
SvxBorderLineStyle GetSelectEntryStyle() const;
- void SetUnit( FieldUnit eNewUnit ) { eUnit = eNewUnit; }
-
void SetSourceUnit( FieldUnit eNewUnit ) { eSourceUnit = eNewUnit; }
void SetColor( const Color& rColor );
diff --git a/include/svtools/fileview.hxx b/include/svtools/fileview.hxx
index 4463bedd6116..df2be7551307 100644
--- a/include/svtools/fileview.hxx
+++ b/include/svtools/fileview.hxx
@@ -71,9 +71,8 @@ struct FileViewAsyncAction
class SVT_DLLPUBLIC SvtFileView : public Control
{
private:
- std::unique_ptr<SvtFileView_Impl> mpImpl;
- bool bSortColumn;
- css::uno::Sequence< OUString > mpBlackList;
+ std::unique_ptr<SvtFileView_Impl> mpImpl;
+ css::uno::Sequence< OUString > mpBlackList;
DECL_DLLPRIVATE_LINK( HeaderSelect_Impl, HeaderBar*, void );
DECL_DLLPRIVATE_LINK( HeaderEndDrag_Impl, HeaderBar*, void );
diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx
index b63fd66fcaad..6f9ca865957f 100644
--- a/include/svtools/grfmgr.hxx
+++ b/include/svtools/grfmgr.hxx
@@ -197,7 +197,6 @@ private:
bool mbEPS : 1;
bool mbIsInSwapIn : 1;
bool mbIsInSwapOut : 1;
- bool mbAlpha : 1;
void SVT_DLLPRIVATE ImplAssignGraphicData();
static void SVT_DLLPRIVATE ImplEnsureGraphicManager();
diff --git a/include/svtools/headbar.hxx b/include/svtools/headbar.hxx
index 2867ebff6b94..ef06552f097d 100644
--- a/include/svtools/headbar.hxx
+++ b/include/svtools/headbar.hxx
@@ -241,19 +241,16 @@ private:
Link<HeaderBar*,void> maDoubleClickHdl;
Link<HeaderBar*,void> maCreateAccessibleHdl;
- VCLXHeaderBar* m_pVCLXHeaderBar;
-
-
css::uno::Reference< css::accessibility::XAccessible >
- mxAccessible;
+ mxAccessible;
using Window::ImplInit;
SVT_DLLPRIVATE void ImplInit( WinBits nWinStyle );
SVT_DLLPRIVATE void ImplInitSettings( bool bFont, bool bForeground, bool bBackground );
SVT_DLLPRIVATE long ImplGetItemPos( sal_uInt16 nPos ) const;
- SVT_DLLPRIVATE tools::Rectangle ImplGetItemRect( sal_uInt16 nPos ) const;
+ SVT_DLLPRIVATE tools::Rectangle ImplGetItemRect( sal_uInt16 nPos ) const;
using Window::ImplHitTest;
- SVT_DLLPRIVATE sal_uInt16 ImplHitTest( const Point& rPos, long& nMouseOff, sal_uInt16& nPos ) const;
+ SVT_DLLPRIVATE sal_uInt16 ImplHitTest( const Point& rPos, long& nMouseOff, sal_uInt16& nPos ) const;
SVT_DLLPRIVATE void ImplInvertDrag( sal_uInt16 nStartPos, sal_uInt16 nEndPos );
SVT_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, bool bHigh,
const tools::Rectangle& rItemRect, const tools::Rectangle* pRect);
diff --git a/include/svtools/inettbc.hxx b/include/svtools/inettbc.hxx
index 26a3d8aeda31..d2b6707c0a5f 100644
--- a/include/svtools/inettbc.hxx
+++ b/include/svtools/inettbc.hxx
@@ -41,7 +41,6 @@ friend class SvtURLBox_Impl;
INetProtocol eSmartProtocol;
bool bAutoCompleteMode : 1;
bool bOnlyDirectories : 1;
- bool bCtrlClick : 1;
bool bHistoryDisabled : 1;
bool bNoSelection : 1;
bool bIsAutoCompleteEnabled : 1;
diff --git a/include/svtools/ivctrl.hxx b/include/svtools/ivctrl.hxx
index 44719ee41b98..93b851b88d7a 100644
--- a/include/svtools/ivctrl.hxx
+++ b/include/svtools/ivctrl.hxx
@@ -189,7 +189,6 @@ class SVT_DLLPUBLIC SvtIconChoiceCtrl : public Control
friend class SvxIconChoiceCtrl_Impl;
Link<SvtIconChoiceCtrl*,void> _aClickIconHdl;
- KeyEvent* _pCurKeyEvent;
std::unique_ptr<SvxIconChoiceCtrl_Impl> _pImpl;
protected:
diff --git a/include/svtools/parhtml.hxx b/include/svtools/parhtml.hxx
index 89a0d5aeedf1..8b070b15107a 100644
--- a/include/svtools/parhtml.hxx
+++ b/include/svtools/parhtml.hxx
@@ -149,7 +149,6 @@ private:
bool bNewDoc : 1; // read new Doc?
bool bIsInHeader : 1; // scan header section
- bool bIsInBody : 1; // scan body section
bool bReadListing : 1; // read listings
bool bReadXMP : 1; // read XMP
bool bReadPRE : 1; // read preformatted text
@@ -180,7 +179,7 @@ protected:
virtual ~HTMLParser() override;
- void FinishHeader( bool bBody ) { bIsInHeader = false; bIsInBody = bBody; }
+ void FinishHeader() { bIsInHeader = false; }
public:
HTMLParser( SvStream& rIn, bool bReadNewDoc = true );
diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx
index 292396feecf8..f1e1a3b6c4db 100644
--- a/include/svtools/ruler.hxx
+++ b/include/svtools/ruler.hxx
@@ -636,14 +636,11 @@ private:
RulerDragSize mnDragSize;
sal_uInt16 mnDragModifier;
sal_uInt16 mnExtraStyle;
- sal_uInt16 mnExtraClicks;
- sal_uInt16 mnExtraModifier;
long mnCharWidth;
long mnLineHeight;
RulerExtra meExtraType;
RulerType meDragType;
- MapUnit meSourceUnit;
FieldUnit meUnit;
Fraction maZoom;
bool mbCalc;
@@ -747,8 +744,6 @@ public:
FieldUnit GetUnit() const { return meUnit; }
void SetZoom( const Fraction& rNewZoom );
- void SetSourceUnit( MapUnit eNewUnit ) { meSourceUnit = eNewUnit; }
-
void SetExtraType( RulerExtra eNewExtraType, sal_uInt16 nStyle = 0 );
bool StartDocDrag( const MouseEvent& rMEvt,
diff --git a/include/svtools/svlbitm.hxx b/include/svtools/svlbitm.hxx
index 16106511a0b5..2e3b7da0245c 100644
--- a/include/svtools/svlbitm.hxx
+++ b/include/svtools/svlbitm.hxx
@@ -65,7 +65,6 @@ private:
long nHeight;
std::unique_ptr<SvLBoxButtonData_Impl> pImpl;
bool bDataOk;
- SvButtonState eState;
std::vector<Image> aBmps; // indices s. constants BMP_ ....
SVT_DLLPRIVATE void SetWidthAndHeight();
@@ -85,7 +84,7 @@ public:
// as buttons are not derived from LinkHdl
void CallLink();
- void StoreButtonState( SvTreeListEntry* pEntry, SvItemStateFlags nItemFlags );
+ void StoreButtonState( SvTreeListEntry* pEntry );
static SvButtonState ConvertToButtonState( SvItemStateFlags nItemFlags );
SvTreeListEntry* GetActEntry() const;
diff --git a/include/svtools/svtabbx.hxx b/include/svtools/svtabbx.hxx
index b555c07a4519..5c1df4059909 100644
--- a/include/svtools/svtabbx.hxx
+++ b/include/svtools/svtabbx.hxx
@@ -52,8 +52,6 @@ private:
OUString aCurEntry;
protected:
- SvTreeListEntry* pViewParent;
-
static OUString GetToken( const OUString &sStr, sal_Int32 &nIndex );
virtual void SetTabs() override;
diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx
index 26f78e6f69f9..811c13529b6c 100644
--- a/include/svtools/tabbar.hxx
+++ b/include/svtools/tabbar.hxx
@@ -321,7 +321,6 @@ private:
bool mbFormat : 1;
bool mbFirstFormat : 1;
bool mbSizeFormat : 1;
- bool mbInSwitching : 1;
bool mbAutoEditMode : 1;
bool mbEditCanceled : 1;
bool mbDropPos : 1;
diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx
index e470be598bfd..3a5d64afe92e 100644
--- a/include/svtools/valueset.hxx
+++ b/include/svtools/valueset.hxx
@@ -211,7 +211,6 @@ private:
long mnUserItemWidth;
long mnUserItemHeight;
sal_uInt16 mnSelItemId;
- sal_uInt16 mnSavedItemId;
sal_uInt16 mnHighItemId;
sal_uInt16 mnCols;
sal_uInt16 mnCurCol;
@@ -347,7 +346,6 @@ public:
{
return GetItemPos( mnSelItemId );
}
- void SaveValue() { mnSavedItemId = GetSelectItemId(); }
bool IsItemSelected( sal_uInt16 nItemId ) const
{
return !mbNoSelection && (nItemId == mnSelItemId);