From 435f43f630fdbf379a8069f163672dc7b1f4f2ee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 25 May 2020 14:51:08 +0200 Subject: loplugin:unusedmethods Change-Id: I235e00eca7b7cbc070bf5831117868eba5c7c273 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94791 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/inc/unx/glyphcache.hxx | 3 --- vcl/source/control/ctrl.cxx | 2 +- vcl/source/control/listbox.cxx | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'vcl') diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx index 983a6ec0382e..993a0cf49a22 100644 --- a/vcl/inc/unx/glyphcache.hxx +++ b/vcl/inc/unx/glyphcache.hxx @@ -116,7 +116,6 @@ public: int GetFontFaceVariation() const; bool TestFont() const { return mbFaceOk;} FT_Face GetFtFace() const; - int GetLoadFlags() const { return (mnLoadFlags & ~FT_LOAD_IGNORE_TRANSFORM); } const FontConfigFontOptions* GetFontOptions() const; bool NeedsArtificialBold() const { return mbArtBold; } bool NeedsArtificialItalic() const { return mbArtItalic; } @@ -130,8 +129,6 @@ public: bool GetGlyphOutline(sal_GlyphId, basegfx::B2DPolyPolygon&, bool) const; bool GetAntialiasAdvice() const; - FreetypeFontInstance& GetFontInstance() const { return mrFontInstance; } - void SetFontVariationsOnHBFont(hb_font_t* pHbFace) const; // tdf#127189 FreeType <= 2.8 will fail to render stretched horizontal brace glyphs diff --git a/vcl/source/control/ctrl.cxx b/vcl/source/control/ctrl.cxx index 522446561a79..81fea00009da 100644 --- a/vcl/source/control/ctrl.cxx +++ b/vcl/source/control/ctrl.cxx @@ -233,7 +233,7 @@ bool Control::EventNotify( NotifyEvent& rNEvt ) { mbHasControlFocus = true; CompatStateChanged( StateChangedType::ControlFocus ); - if ( ImplCallEventListenersAndHandler( VclEventId::ControlGetFocus, [this] () { maGetFocusHdl.Call(*this); } ) ) + if ( ImplCallEventListenersAndHandler( VclEventId::ControlGetFocus, {} ) ) // been destroyed within the handler return true; } diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx index ff80f5757cce..47c4b792cd51 100644 --- a/vcl/source/control/listbox.cxx +++ b/vcl/source/control/listbox.cxx @@ -902,7 +902,7 @@ void ListBox::Select() void ListBox::DoubleClick() { - ImplCallEventListenersAndHandler( VclEventId::ListboxDoubleClick, [this] () { maDoubleClickHdl.Call(*this); } ); + ImplCallEventListenersAndHandler( VclEventId::ListboxDoubleClick, {} ); } void ListBox::Clear() -- cgit