diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-01 14:20:31 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-02 06:38:20 +0000 |
commit | 837f171810a95a1d87907dd08d67e969276f0559 (patch) | |
tree | 6891aa9774c63b759b29d365e0d141f5d7bf3a8c /vcl/unx/generic/gdi | |
parent | Make external/firebird work with C++14 sized deallocation (diff) | |
download | core-837f171810a95a1d87907dd08d67e969276f0559.tar.gz core-837f171810a95a1d87907dd08d67e969276f0559.zip |
loplugin:unusedmethods in vcl
Change-Id: Ib404310761fd555b033ab6594ba8636d37f23463
Reviewed-on: https://gerrit.libreoffice.org/19074
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/unx/generic/gdi')
-rw-r--r-- | vcl/unx/generic/gdi/cairo_xlib_cairo.hxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.cxx | 14 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.hxx | 1 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/xrender_peer.hxx | 50 |
4 files changed, 0 insertions, 67 deletions
diff --git a/vcl/unx/generic/gdi/cairo_xlib_cairo.hxx b/vcl/unx/generic/gdi/cairo_xlib_cairo.hxx index 7cb5b5b39b40..f710a3f28656 100644 --- a/vcl/unx/generic/gdi/cairo_xlib_cairo.hxx +++ b/vcl/unx/generic/gdi/cairo_xlib_cairo.hxx @@ -60,8 +60,6 @@ namespace cairo { {} ~X11Pixmap(); - - void clear() { mpDisplay=NULL; mhDrawable=0; } }; typedef std::shared_ptr<X11Pixmap> X11PixmapSharedPtr; diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx index d350d019f961..e85b096560cc 100644 --- a/vcl/unx/generic/gdi/gdiimpl.cxx +++ b/vcl/unx/generic/gdi/gdiimpl.cxx @@ -326,20 +326,6 @@ GC X11SalGraphicsImpl::GetTrackingGC() return mpTrackingGC; } -inline GC X11SalGraphicsImpl::GetMonoGC( Pixmap hPixmap ) -{ - if( !mpMonoGC ) - mpMonoGC = CreateGC( hPixmap ); - - if( !mbMonoGC ) - { - mrParent.SetClipRegion( mpMonoGC ); - mbMonoGC = true; - } - - return mpMonoGC; -} - GC X11SalGraphicsImpl::GetInvertGC() { if( !mpInvertGC ) diff --git a/vcl/unx/generic/gdi/gdiimpl.hxx b/vcl/unx/generic/gdi/gdiimpl.hxx index 24173c787ddf..b4540537f423 100644 --- a/vcl/unx/generic/gdi/gdiimpl.hxx +++ b/vcl/unx/generic/gdi/gdiimpl.hxx @@ -80,7 +80,6 @@ private: GC GetTrackingGC(); GC GetInvertGC(); GC GetInvert50GC(); - inline GC GetMonoGC( Pixmap hPixmap ); void DrawLines( sal_uIntPtr nPoints, const SalPolyLine &rPoints, diff --git a/vcl/unx/generic/gdi/xrender_peer.hxx b/vcl/unx/generic/gdi/xrender_peer.hxx index bf8dfd6147cb..dd0a420b79b0 100644 --- a/vcl/unx/generic/gdi/xrender_peer.hxx +++ b/vcl/unx/generic/gdi/xrender_peer.hxx @@ -60,20 +60,11 @@ public: int nXDst, int nYDst, unsigned nWidth, unsigned nHeight ) const; void FreePicture( Picture ) const; - GlyphSet CreateGlyphSet() const; - void FreeGlyphSet( GlyphSet ) const; - void AddGlyph( GlyphSet, XRenderGlyph nXRGlyph, const XGlyphInfo&, - const char* pBuffer, int nBufSize ) const; - static void FreeGlyph( GlyphSet, XRenderGlyph nXRGlyphId ); - void CompositeString32( Picture aSrc, Picture aDst, GlyphSet, - int nDstX, int nDstY, const unsigned* pText, int nTextLen ) const; void FillRectangle( int nOp, Picture aDst, const XRenderColor*, int nX, int nY, unsigned nW, unsigned nH ) const; void CompositeTrapezoids( int nOp, Picture aSrc, Picture aDst, const XRenderPictFormat*, int nXSrc, int nYSrc, const XTrapezoid*, int nCount ) const; - void AddTraps( Picture aDst, int nXOfs, int nYOfs, - const _XTrap*, int nCount ) const; }; inline XRenderPictFormat* XRenderPeer::GetStandardFormatA8() const @@ -131,41 +122,6 @@ inline void XRenderPeer::FreePicture( Picture aPicture ) const XRenderFreePicture( mpDisplay, aPicture ); } -inline GlyphSet XRenderPeer::CreateGlyphSet() const -{ - return XRenderCreateGlyphSet( mpDisplay, mpStandardFormatA8 ); -} - -inline void XRenderPeer::FreeGlyphSet( GlyphSet aGS ) const -{ - XRenderFreeGlyphSet( mpDisplay, aGS ); -} - -inline void XRenderPeer::AddGlyph( GlyphSet aGS, XRenderGlyph nXRGlyph, - const XGlyphInfo& rGI, const char* pBuffer, int nBufSize ) const -{ - XRenderAddGlyphs( mpDisplay, aGS, &nXRGlyph, &rGI, 1, - pBuffer, nBufSize ); -} - -inline void XRenderPeer::FreeGlyph( GlyphSet aGS, XRenderGlyph nXRGlyph ) -{ - (void)aGS; (void)nXRGlyph; - - // XRenderFreeGlyphs not implemented yet for version<=0.2 - // #108209# disabled because of crash potential, - // the glyph leak is not too bad because they will - // be cleaned up when the glyphset is released -} - -inline void XRenderPeer::CompositeString32( Picture aSrc, Picture aDst, - GlyphSet aGlyphSet, int nDstX, int nDstY, - const unsigned* pText, int nTextLen ) const -{ - XRenderCompositeString32( mpDisplay, PictOpOver, aSrc, aDst, NULL, - aGlyphSet, 0, 0, nDstX, nDstY, pText, nTextLen ); -} - inline void XRenderPeer::FillRectangle( int a, Picture b, const XRenderColor* c, int d, int e, unsigned int f, unsigned int g) const { @@ -180,12 +136,6 @@ inline void XRenderPeer::CompositeTrapezoids( int nOp, nXSrc, nYSrc, pXT, nCount ); } -inline void XRenderPeer::AddTraps( Picture aDst, int nXOfs, int nYOfs, - const _XTrap* pTraps, int nCount ) const -{ - XRenderAddTraps( mpDisplay, aDst, nXOfs, nYOfs, pTraps, nCount ); -} - inline XRenderColor GetXRenderColor( const SalColor& rSalColor, double fTransparency = 0.0 ) { XRenderColor aRetVal; |