summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-20 14:08:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-20 14:37:38 +0100
commit73de019c0b1ac82229f7c5cff84deea39ad78a18 (patch)
treef9b805d3ede88b22429b6ef4ca66c6d63c54f3c7 /vcl
parent01702f7d5f52b72a890f6a0173d42199c587e01f (diff)
loplugin:unusedfields
Change-Id: If130c8a4861998d7eafd2e9525592f3c811ec21c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87069 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/toolbox.h1
-rw-r--r--vcl/source/control/field.cxx4
-rw-r--r--vcl/source/window/toolbox.cxx3
3 files changed, 0 insertions, 8 deletions
diff --git a/vcl/inc/toolbox.h b/vcl/inc/toolbox.h
index 1b5dfa58905a..3012c5916570 100644
--- a/vcl/inc/toolbox.h
+++ b/vcl/inc/toolbox.h
@@ -37,7 +37,6 @@ struct ImplToolItem
VclPtr<vcl::Window> mpWindow; //don't dispose mpWindow - we get copied around
void* mpUserData;
Image maImage;
- Image maOverlayImage;
long mnImageAngle;
bool mbMirrorMode;
OUString maText;
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index aa79e0890623..86a9a38b8887 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -537,7 +537,6 @@ void NumericFormatter::ImplNumericReformat()
NumericFormatter::NumericFormatter(Edit* pEdit)
: FormatterBase(pEdit)
- , mnFieldValue(0)
, mnLastValue(0)
, mnMin(0)
// a "large" value substantially smaller than SAL_MAX_INT64, to avoid
@@ -599,7 +598,6 @@ void NumericFormatter::SetShowTrailingZeros( bool bShowTrailingZeros )
void NumericFormatter::SetValue( sal_Int64 nNewValue )
{
SetUserValue( nNewValue );
- mnFieldValue = mnLastValue;
SetEmptyFieldValueData( false );
}
@@ -1415,7 +1413,6 @@ void MetricFormatter::SetCustomUnitText( const OUString& rStr )
void MetricFormatter::SetValue( sal_Int64 nNewValue, FieldUnit eInUnit )
{
SetUserValue( nNewValue, eInUnit );
- mnFieldValue = mnLastValue;
}
OUString MetricFormatter::CreateFieldText( sal_Int64 nValue ) const
@@ -1855,7 +1852,6 @@ CurrencyFormatter::~CurrencyFormatter()
void CurrencyFormatter::SetValue( sal_Int64 nNewValue )
{
SetUserValue( nNewValue );
- mnFieldValue = mnLastValue;
SetEmptyFieldValueData( false );
}
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 4b0d02493448..8db0cb65d6e8 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2651,7 +2651,6 @@ void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, ImplToolItems::si
if ( bImage )
{
const Image* pImage = &(pItem->maImage);
- const Image& rOverlayImage = pItem->maOverlayImage;
aImageSize = pImage->GetSizePixel();
// determine drawing flags
@@ -2696,8 +2695,6 @@ void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, ImplToolItems::si
}
}
rRenderContext.DrawImage(Point( nImageOffX, nImageOffY ), *pImage, nImageStyle);
- if (!!rOverlayImage)
- rRenderContext.DrawImage(Point( nImageOffX, nImageOffY ), rOverlayImage, nImageStyle);
}
// draw the text