summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-03 15:34:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-03 17:31:21 +0100
commit5b7a61a852216f97cc7ff5952e13a6d922bc00b6 (patch)
treefabe8da9f90ccbcb52fc412fa5a7c6cce9ae4813 /vcl/unx
parent2359ad3305c20b0654bdb2ff41a4703c833f7734 (diff)
loplugin:unusedfields
Change-Id: Ia8e2a7ce75bfded98e85fa583d1404710069d335 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105249 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/gdi/font.cxx1
-rw-r--r--vcl/unx/generic/gdi/salgdi.cxx1
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx2
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx3
4 files changed, 1 insertions, 6 deletions
diff --git a/vcl/unx/generic/gdi/font.cxx b/vcl/unx/generic/gdi/font.cxx
index 2c53f277c12d..d744dc28effc 100644
--- a/vcl/unx/generic/gdi/font.cxx
+++ b/vcl/unx/generic/gdi/font.cxx
@@ -49,7 +49,6 @@ void
X11SalGraphics::SetTextColor( Color nColor )
{
mxTextRenderImpl->SetTextColor(nColor);
- nTextPixel_ = GetPixel( nColor );
}
bool X11SalGraphics::AddTempDevFont( PhysicalFontCollection* pFontCollection,
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index 35b9fe7fd2f8..dcb46c37ebfe 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -76,7 +76,6 @@ X11SalGraphics::X11SalGraphics():
mnPenColor(SALCOLOR_NONE),
mnFillColor(SALCOLOR_NONE),
#endif // ENABLE_CAIRO_CANVAS
- nTextPixel_(0),
hBrush_(None),
bWindow_(false),
bVirDev_(false),
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 1df0240c868d..4680acf77a67 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -920,7 +920,6 @@ void GtkSalFrame::InitCommon()
g_signal_connect( G_OBJECT(m_pWindow), "destroy", G_CALLBACK(signalDestroy), this );
// init members
- m_pCurrentCursor = nullptr;
m_nKeyModifiers = ModKeyFlags::NONE;
m_bFullscreen = false;
m_bSpanMonitorsWhenFullscreen = false;
@@ -2033,7 +2032,6 @@ void GtkSalFrame::SetPointer( PointerStyle ePointerStyle )
m_ePointerStyle = ePointerStyle;
GdkCursor *pCursor = getDisplay()->getCursor( ePointerStyle );
gdk_window_set_cursor( gtk_widget_get_window(m_pWindow), pCursor );
- m_pCurrentCursor = pCursor;
// #i80791# use grabPointer the same way as CaptureMouse, respective float grab
if( getDisplay()->MouseCaptured( this ) )
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index e9a7070de4d0..81b69554b438 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -7637,7 +7637,6 @@ class GtkInstanceMenuToggleButton : public GtkInstanceToggleButton, public MenuH
private:
GtkContainer* m_pContainer;
GtkButton* m_pToggleMenuButton;
- GtkBox* m_pBox;
gulong m_nMenuBtnClickedId;
gulong m_nToggleStateFlagsChangedId;
gulong m_nMenuBtnStateFlagsChangedId;
@@ -7748,7 +7747,7 @@ public:
, m_nToggleStateFlagsChangedId(g_signal_connect(m_pToggleButton, "state-flags-changed", G_CALLBACK(signalToggleStateFlagsChanged), this))
, m_nMenuBtnStateFlagsChangedId(g_signal_connect(m_pToggleMenuButton, "state-flags-changed", G_CALLBACK(signalMenuBtnStateFlagsChanged), this))
{
- m_pBox = GtkInstanceMenuButton::formatMenuButton(gtk_bin_get_child(GTK_BIN(pMenuButton)));
+ GtkInstanceMenuButton::formatMenuButton(gtk_bin_get_child(GTK_BIN(pMenuButton)));
insertAsParent(GTK_WIDGET(pMenuButton), GTK_WIDGET(m_pContainer));
gtk_widget_hide(GTK_WIDGET(pMenuButton));