diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-04 09:07:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-04 14:22:40 +0200 |
commit | ffa35b82ce845d82a5beae36eb57cec2b0c01233 (patch) | |
tree | ea6ff3a2245e4deea0223ab6470de5b71cc6fa30 /vcl/unx | |
parent | 41383ad341dbfcb0233cbbdaafceeb545b955ce3 (diff) |
loplugin:unusedmethods
Change-Id: Idd98dc9e1090a6b09124c80eed5a878e5e966cfc
Reviewed-on: https://gerrit.libreoffice.org/80182
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.cxx | 27 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.cxx | 5 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.hxx | 3 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/salgdi2.cxx | 37 | ||||
-rw-r--r-- | vcl/unx/gtk3/gtk3gtksys.cxx | 6 |
5 files changed, 0 insertions, 78 deletions
diff --git a/vcl/unx/generic/gdi/font.cxx b/vcl/unx/generic/gdi/font.cxx index 2efac7717edf..a9bfa743923e 100644 --- a/vcl/unx/generic/gdi/font.cxx +++ b/vcl/unx/generic/gdi/font.cxx @@ -24,33 +24,6 @@ #include <textrender.hxx> #include <sallayout.hxx> -GC -X11SalGraphics::GetFontGC() -{ - Display *pDisplay = GetXDisplay(); - - if( !pFontGC_ ) - { - XGCValues values; - values.subwindow_mode = ClipByChildren; - values.fill_rule = EvenOddRule; // Pict import/ Gradient - values.graphics_exposures = False; - values.foreground = nTextPixel_; - pFontGC_ = XCreateGC( pDisplay, hDrawable_, - GCSubwindowMode | GCFillRule - | GCGraphicsExposures | GCForeground, - &values ); - } - if( !bFontGC_ ) - { - XSetForeground( pDisplay, pFontGC_, nTextPixel_ ); - SetClipRegion( pFontGC_ ); - bFontGC_ = true; - } - - return pFontGC_; -} - void X11SalGraphics::DrawTextLayout(const GenericSalLayout& rLayout) { mxTextRenderImpl->DrawTextLayout(rLayout, *this); diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx index de51359b6e6e..39154e85ee91 100644 --- a/vcl/unx/generic/gdi/gdiimpl.cxx +++ b/vcl/unx/generic/gdi/gdiimpl.cxx @@ -154,11 +154,6 @@ void X11SalGraphicsImpl::Init() mnBrushPixel = mrParent.GetPixel( mnBrushColor ); } -bool X11SalGraphicsImpl::TryRenderCachedNativeControl(ControlCacheKey& /*rControlCacheKey*/, int /*nX*/, int /*nY*/) -{ - return false; -} - XID X11SalGraphicsImpl::GetXRenderPicture() { XRenderPeer& rRenderPeer = XRenderPeer::GetInstance(); diff --git a/vcl/unx/generic/gdi/gdiimpl.hxx b/vcl/unx/generic/gdi/gdiimpl.hxx index 0b4861896b5e..315ed4094f8b 100644 --- a/vcl/unx/generic/gdi/gdiimpl.hxx +++ b/vcl/unx/generic/gdi/gdiimpl.hxx @@ -286,9 +286,6 @@ public: // implementation of X11GraphicsImpl void Init() override; - - virtual bool TryRenderCachedNativeControl(ControlCacheKey& rControlCacheKey, - int nX, int nY) override; }; #endif diff --git a/vcl/unx/generic/gdi/salgdi2.cxx b/vcl/unx/generic/gdi/salgdi2.cxx index 7f470488bdd0..2e10ac7b0bed 100644 --- a/vcl/unx/generic/gdi/salgdi2.cxx +++ b/vcl/unx/generic/gdi/salgdi2.cxx @@ -31,43 +31,6 @@ #include <ControlCacheKey.hxx> -void X11SalGraphics::CopyScreenArea( Display* pDisplay, - Drawable aSrc, SalX11Screen nXScreenSrc, int nSrcDepth, - Drawable aDest, SalX11Screen nXScreenDest, int nDestDepth, - GC aDestGC, - int src_x, int src_y, - unsigned int w, unsigned int h, - int dest_x, int dest_y ) -{ - if( nSrcDepth == nDestDepth ) - { - if( nXScreenSrc == nXScreenDest ) - XCopyArea( pDisplay, aSrc, aDest, aDestGC, - src_x, src_y, w, h, dest_x, dest_y ); - else - { - GetGenericUnixSalData()->ErrorTrapPush(); - XImage* pImage = XGetImage( pDisplay, aSrc, src_x, src_y, w, h, - AllPlanes, ZPixmap ); - if( pImage ) - { - if( pImage->data ) - XPutImage( pDisplay, aDest, aDestGC, pImage, - 0, 0, dest_x, dest_y, w, h ); - XDestroyImage( pImage ); - } - GetGenericUnixSalData()->ErrorTrapPop(); - } - } - else - { - X11SalBitmap aBM; - aBM.ImplCreateFromDrawable( aSrc, nXScreenSrc, nSrcDepth, src_x, src_y, w, h ); - SalTwoRect aTwoRect(0, 0, w, h, dest_x, dest_y, w, h); - aBM.ImplDraw(aDest, nXScreenDest, nDestDepth, aTwoRect,aDestGC); - } -} - extern "C" { static Bool GraphicsExposePredicate( Display*, XEvent* pEvent, const XPointer pFrameWindow ) diff --git a/vcl/unx/gtk3/gtk3gtksys.cxx b/vcl/unx/gtk3/gtk3gtksys.cxx index 229a718c75a7..daf332b29d30 100644 --- a/vcl/unx/gtk3/gtk3gtksys.cxx +++ b/vcl/unx/gtk3/gtk3gtksys.cxx @@ -51,12 +51,6 @@ GtkSalSystem::~GtkSalSystem() { } -int -GtkSalSystem::GetDisplayXScreenCount() -{ - return gdk_display_get_n_screens (mpDisplay); -} - namespace { |