summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sfx2/titledockwin.hxx3
-rw-r--r--include/vcl/combobox.hxx2
-rw-r--r--mysqlc/source/mysqlc_connection.hxx2
-rw-r--r--sfx2/source/dialog/titledockwin.cxx8
-rw-r--r--vcl/generic/glyphs/glyphcache.cxx12
-rw-r--r--vcl/headless/svpgdi.cxx1
-rw-r--r--vcl/headless/svpglyphcache.cxx11
-rw-r--r--vcl/inc/generic/glyphcache.hxx19
-rw-r--r--vcl/inc/salgdi.hxx2
-rw-r--r--vcl/inc/salgdiimpl.hxx2
-rw-r--r--vcl/inc/textrender.hxx2
-rw-r--r--vcl/inc/unx/salgdi.h2
-rw-r--r--vcl/inc/unx/salinst.h2
-rw-r--r--vcl/inc/win/salgdi.h2
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx8
-rw-r--r--vcl/unx/generic/gdi/gcach_xpeer.cxx15
-rw-r--r--vcl/unx/generic/gdi/gcach_xpeer.hxx10
-rw-r--r--vcl/unx/generic/gdi/salgdi.cxx5
-rw-r--r--vcl/win/gdi/salgdi.cxx5
19 files changed, 15 insertions, 98 deletions
diff --git a/include/sfx2/titledockwin.hxx b/include/sfx2/titledockwin.hxx
index ebae6747d3f0..511818498e7f 100644
--- a/include/sfx2/titledockwin.hxx
+++ b/include/sfx2/titledockwin.hxx
@@ -66,9 +66,6 @@ namespace sfx2
// DockingWindow overridables
void EndDocking(const Rectangle& rRect, bool bFloatMode) override;
- // own overridables
- virtual void onLayoutDone();
-
virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
protected:
/** internal version of ResetToolBox
diff --git a/include/vcl/combobox.hxx b/include/vcl/combobox.hxx
index 7bb281eeda14..83961566a762 100644
--- a/include/vcl/combobox.hxx
+++ b/include/vcl/combobox.hxx
@@ -67,7 +67,7 @@ public:
virtual void UserDraw( const UserDrawEvent& rUDEvt );
virtual void Select();
- virtual void DoubleClick();
+ void DoubleClick();
virtual void Modify() override;
diff --git a/mysqlc/source/mysqlc_connection.hxx b/mysqlc/source/mysqlc_connection.hxx
index a41f3499cabf..50ac3c5ac15d 100644
--- a/mysqlc/source/mysqlc_connection.hxx
+++ b/mysqlc/source/mysqlc_connection.hxx
@@ -114,7 +114,7 @@ namespace connectivity
sal_Int32 getMysqlVersion()
throw(SQLException, RuntimeException);
- virtual void construct(const rtl::OUString& url,const css::uno::Sequence< css::beans::PropertyValue >& info)
+ void construct(const rtl::OUString& url,const css::uno::Sequence< css::beans::PropertyValue >& info)
throw(SQLException);
OConnection(MysqlCDriver& _rDriver, sql::Driver * cppDriver);
diff --git a/sfx2/source/dialog/titledockwin.cxx b/sfx2/source/dialog/titledockwin.cxx
index 0a8ac0d67d2d..154e40697730 100644
--- a/sfx2/source/dialog/titledockwin.cxx
+++ b/sfx2/source/dialog/titledockwin.cxx
@@ -92,12 +92,6 @@ namespace sfx2
}
- void TitledDockingWindow::onLayoutDone()
- {
- // not interested in
- }
-
-
void TitledDockingWindow::impl_scheduleLayout()
{
m_bLayoutPending = true;
@@ -136,8 +130,6 @@ namespace sfx2
aWindowSize.Height() - m_aBorder.Top() - m_aBorder.Bottom()
)
);
-
- onLayoutDone();
}
void TitledDockingWindow::ApplySettings(vcl::RenderContext& rRenderContext)
diff --git a/vcl/generic/glyphs/glyphcache.cxx b/vcl/generic/glyphs/glyphcache.cxx
index 79c827966cc7..8a2c955ae8d4 100644
--- a/vcl/generic/glyphs/glyphcache.cxx
+++ b/vcl/generic/glyphs/glyphcache.cxx
@@ -36,9 +36,8 @@
static GlyphCache* pInstance = nullptr;
-GlyphCache::GlyphCache( GlyphCachePeer& rPeer )
-: mrPeer( rPeer ),
- mnMaxSize( 1500000 ),
+GlyphCache::GlyphCache()
+: mnMaxSize( 1500000 ),
mnBytesUsed(sizeof(GlyphCache)),
mnLruIndex(0),
mnGlyphCount(0),
@@ -62,7 +61,6 @@ void GlyphCache::InvalidateAllGlyphs()
ServerFont* pServerFont = it->second;
// free all pServerFont related data
pServerFont->GarbageCollect( mnLruIndex+0x10000000 );
- mrPeer.RemovingFont(*pServerFont);
delete pServerFont;
}
@@ -262,7 +260,6 @@ void GlyphCache::GarbageCollect()
mpCurrentGCFont = nullptr;
const FontSelectPattern& rIFSD = pServerFont->GetFontSelData();
maFontList.erase( rIFSD );
- mrPeer.RemovingFont( *pServerFont );
mnBytesUsed -= pServerFont->GetByteCount();
// remove font from list of garbage collected fonts
@@ -296,9 +293,8 @@ void GlyphCache::GrowNotify()
GarbageCollect();
}
-inline void GlyphCache::RemovingGlyph( GlyphData& rGD )
+inline void GlyphCache::RemovingGlyph()
{
- mrPeer.RemovingGlyph( rGD );
mnBytesUsed -= sizeof( GlyphData );
--mnGlyphCount;
}
@@ -348,7 +344,7 @@ void ServerFont::GarbageCollect( long nMinLruIndex )
{
OSL_ASSERT( mnBytesUsed >= sizeof(GlyphData) );
mnBytesUsed -= sizeof( GlyphData );
- GlyphCache::GetInstance().RemovingGlyph( rGD );
+ GlyphCache::GetInstance().RemovingGlyph();
it = maGlyphList.erase( it );
}
else
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index a7e401b769b1..45bad1e8c4fb 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -404,7 +404,6 @@ void SvpSalGraphics::setDevice( basebmp::BitmapDeviceSharedPtr& rDevice )
{
m_aOrigDevice = rDevice;
ResetClipRegion();
- m_aTextRenderImpl.setDevice(rDevice);
}
void SvpSalGraphics::GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY )
diff --git a/vcl/headless/svpglyphcache.cxx b/vcl/headless/svpglyphcache.cxx
index 833e750c66a4..a94ea85ea76f 100644
--- a/vcl/headless/svpglyphcache.cxx
+++ b/vcl/headless/svpglyphcache.cxx
@@ -28,24 +28,16 @@
#include "generic/glyphcache.hxx"
#include "headless/svpgdi.hxx"
-class SvpGlyphPeer : public GlyphCachePeer
-{
-public:
- SvpGlyphPeer() {}
-};
-
namespace
{
struct GlyphCacheHolder
{
private:
- SvpGlyphPeer* m_pSvpGlyphPeer;
GlyphCache* m_pSvpGlyphCache;
public:
GlyphCacheHolder()
{
- m_pSvpGlyphPeer = new SvpGlyphPeer();
- m_pSvpGlyphCache = new GlyphCache( *m_pSvpGlyphPeer );
+ m_pSvpGlyphCache = new GlyphCache;
}
GlyphCache& getGlyphCache()
{
@@ -54,7 +46,6 @@ namespace
~GlyphCacheHolder()
{
delete m_pSvpGlyphCache;
- delete m_pSvpGlyphPeer;
}
};
diff --git a/vcl/inc/generic/glyphcache.hxx b/vcl/inc/generic/glyphcache.hxx
index cff39beff401..2ac31c47264d 100644
--- a/vcl/inc/generic/glyphcache.hxx
+++ b/vcl/inc/generic/glyphcache.hxx
@@ -39,7 +39,6 @@
class FreetypeManager;
class FtFontInfo;
-class GlyphCachePeer;
class GlyphData;
class GraphiteFaceWrapper;
class FontConfigFontOptions;
@@ -55,7 +54,7 @@ namespace vcl { struct FontCapabilities; }
class VCL_DLLPUBLIC GlyphCache
{
public:
- explicit GlyphCache( GlyphCachePeer& );
+ explicit GlyphCache();
~GlyphCache();
static GlyphCache& GetInstance();
@@ -72,14 +71,11 @@ public:
void ClearFontCache();
void InvalidateAllGlyphs();
-protected:
- GlyphCachePeer& mrPeer;
-
private:
friend class ServerFont;
// used by ServerFont class only
void AddedGlyph( ServerFont&, GlyphData& );
- void RemovingGlyph( GlyphData& );
+ void RemovingGlyph();
void UsingGlyph( ServerFont&, GlyphData& );
void GrowNotify();
@@ -298,17 +294,6 @@ public:
virtual bool Layout(ServerFontLayout&, ImplLayoutArgs&) = 0;
};
-class GlyphCachePeer
-{
-protected:
- GlyphCachePeer() {}
- virtual ~GlyphCachePeer() {}
-
-public:
- virtual void RemovingFont( ServerFont& ) {}
- virtual void RemovingGlyph( GlyphData& ) {}
-};
-
#endif // INCLUDED_VCL_INC_GENERIC_GLYPHCACHE_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx
index 0397fcdabff5..9fd39796a8e8 100644
--- a/vcl/inc/salgdi.hxx
+++ b/vcl/inc/salgdi.hxx
@@ -438,8 +438,6 @@ public:
sal_uInt8 nTransparency,
const OutputDevice *pOutDev );
- virtual OpenGLContext *BeginPaint() { return nullptr; }
-
virtual SystemGraphicsData GetGraphicsData() const = 0;
#if ENABLE_CAIRO_CANVAS
diff --git a/vcl/inc/salgdiimpl.hxx b/vcl/inc/salgdiimpl.hxx
index dd391b1a2441..f0e58d2a6e96 100644
--- a/vcl/inc/salgdiimpl.hxx
+++ b/vcl/inc/salgdiimpl.hxx
@@ -211,8 +211,6 @@ public:
sal_uInt8 nTransparency ) = 0;
virtual bool drawGradient(const tools::PolyPolygon& rPolygon, const Gradient& rGradient) = 0;
-
- virtual OpenGLContext *beginPaint() { return nullptr; }
};
#endif
diff --git a/vcl/inc/textrender.hxx b/vcl/inc/textrender.hxx
index f726255a2b24..32795fb0c4a9 100644
--- a/vcl/inc/textrender.hxx
+++ b/vcl/inc/textrender.hxx
@@ -43,8 +43,6 @@ class TextRenderImpl
public:
virtual ~TextRenderImpl() {}
- virtual void setDevice(basebmp::BitmapDeviceSharedPtr& /*rDevice*/) {}
-
virtual void SetTextColor( SalColor nSalColor ) = 0;
virtual sal_uInt16 SetFont( FontSelectPattern*, int nFallbackLevel ) = 0;
virtual void GetFontMetric( ImplFontMetricData*, int nFallbackLevel ) = 0;
diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h
index 9f744c8d1408..ffe0918bb7ad 100644
--- a/vcl/inc/unx/salgdi.h
+++ b/vcl/inc/unx/salgdi.h
@@ -263,8 +263,6 @@ public:
virtual css::uno::Any GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& rSurface, const basegfx::B2ISize& rSize) const override;
virtual SystemFontData GetSysFontData( int nFallbackLevel ) const override;
- virtual OpenGLContext *BeginPaint() override;
-
bool TryRenderCachedNativeControl(ControlCacheKey& aControlCacheKey,
int nX, int nY);
diff --git a/vcl/inc/unx/salinst.h b/vcl/inc/unx/salinst.h
index 54119d46f8a2..b650ea008458 100644
--- a/vcl/inc/unx/salinst.h
+++ b/vcl/inc/unx/salinst.h
@@ -56,7 +56,7 @@ public:
virtual void DestroyObject( SalObject* pObject ) override;
/// Gtk vclplug needs to pass GtkSalGraphics to X11SalVirtualDevice, so create it, and pass as pNewGraphics.
- virtual SalVirtualDevice* CreateX11VirtualDevice(SalGraphics* pGraphics, long &nDX, long &nDY,
+ SalVirtualDevice* CreateX11VirtualDevice(SalGraphics* pGraphics, long &nDX, long &nDY,
DeviceFormat eFormat, const SystemGraphicsData* pData, X11SalGraphics* pNewGraphics);
virtual SalVirtualDevice* CreateVirtualDevice( SalGraphics* pGraphics,
diff --git a/vcl/inc/win/salgdi.h b/vcl/inc/win/salgdi.h
index 8c233a8c665f..e15d8aaef79e 100644
--- a/vcl/inc/win/salgdi.h
+++ b/vcl/inc/win/salgdi.h
@@ -436,8 +436,6 @@ public:
virtual SystemGraphicsData GetGraphicsData() const override;
- virtual OpenGLContext *BeginPaint() override;
-
/// Update settings based on the platform values
static void updateSettingsNative( AllSettings& rSettings );
};
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index f1e1660beaaf..bfd811001926 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -1144,14 +1144,6 @@ OutputDevice::PaintScope::PaintScope(OutputDevice *pDev)
{
if( pDev->mpGraphics || pDev->AcquireGraphics() )
{
- OpenGLContext *pContext = pDev->mpGraphics->BeginPaint();
- if( pContext )
- {
- assert( pContext->mnPainting >= 0 );
- pContext->mnPainting++;
- pContext->acquire();
- pHandle = static_cast<void *>( pContext );
- }
}
}
diff --git a/vcl/unx/generic/gdi/gcach_xpeer.cxx b/vcl/unx/generic/gdi/gcach_xpeer.cxx
index 486f3c169abe..d98fe3fb2af9 100644
--- a/vcl/unx/generic/gdi/gcach_xpeer.cxx
+++ b/vcl/unx/generic/gdi/gcach_xpeer.cxx
@@ -28,11 +28,7 @@
#include "gcach_xpeer.hxx"
#include "xrender_peer.hxx"
-X11GlyphPeer::X11GlyphPeer()
-{
-}
-
-X11GlyphPeer::~X11GlyphPeer()
+X11GlyphCache::~X11GlyphCache()
{
if( !ImplGetSVData() )
return;
@@ -57,8 +53,7 @@ X11GlyphPeer::~X11GlyphPeer()
}
}
-X11GlyphCache::X11GlyphCache( X11GlyphPeer& rPeer )
-: GlyphCache( rPeer )
+X11GlyphCache::X11GlyphCache()
{
}
@@ -67,20 +62,16 @@ namespace
struct GlyphCacheHolder
{
private:
- X11GlyphPeer* m_pX11GlyphPeer;
X11GlyphCache* m_pX11GlyphCache;
public:
GlyphCacheHolder()
{
- m_pX11GlyphPeer = new X11GlyphPeer();
- m_pX11GlyphCache = new X11GlyphCache( *m_pX11GlyphPeer );
+ m_pX11GlyphCache = new X11GlyphCache;
}
void release()
{
delete m_pX11GlyphCache;
- delete m_pX11GlyphPeer;
m_pX11GlyphCache = nullptr;
- m_pX11GlyphPeer = nullptr;
}
X11GlyphCache& getGlyphCache()
{
diff --git a/vcl/unx/generic/gdi/gcach_xpeer.hxx b/vcl/unx/generic/gdi/gcach_xpeer.hxx
index ecd21a7c8d2e..5d3b89ffe3f4 100644
--- a/vcl/unx/generic/gdi/gcach_xpeer.hxx
+++ b/vcl/unx/generic/gdi/gcach_xpeer.hxx
@@ -22,17 +22,11 @@
#include "generic/glyphcache.hxx"
-class X11GlyphPeer : public GlyphCachePeer
-{
-public:
- X11GlyphPeer();
- virtual ~X11GlyphPeer();
-};
-
class X11GlyphCache : public GlyphCache
{
public:
- explicit X11GlyphCache( X11GlyphPeer& );
+ explicit X11GlyphCache();
+ virtual ~X11GlyphCache();
static X11GlyphCache& GetInstance();
static void KillInstance();
};
diff --git a/vcl/unx/generic/gdi/salgdi.cxx b/vcl/unx/generic/gdi/salgdi.cxx
index 09ca082d0944..650bd83f184a 100644
--- a/vcl/unx/generic/gdi/salgdi.cxx
+++ b/vcl/unx/generic/gdi/salgdi.cxx
@@ -556,11 +556,6 @@ bool X11SalGraphics::drawGradient(const tools::PolyPolygon& rPoly, const Gradien
return mxImpl->drawGradient(rPoly, rGradient);
}
-OpenGLContext *X11SalGraphics::BeginPaint()
-{
- return mxImpl->beginPaint();
-}
-
SalGeometryProvider *X11SalGraphics::GetGeometryProvider() const
{
if (m_pFrame)
diff --git a/vcl/win/gdi/salgdi.cxx b/vcl/win/gdi/salgdi.cxx
index 366b81c8d459..36ff3228305f 100644
--- a/vcl/win/gdi/salgdi.cxx
+++ b/vcl/win/gdi/salgdi.cxx
@@ -1046,9 +1046,4 @@ SystemGraphicsData WinSalGraphics::GetGraphicsData() const
return aRes;
}
-OpenGLContext *WinSalGraphics::BeginPaint()
-{
- return mpImpl->beginPaint();
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */