From 309574394bd4ae3e9e10e5ff0d64bdd7bbbc8b83 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 29 Jan 2015 09:07:25 +0000 Subject: callcatcher: large newly detected unused methods post de-virtualization i.e lots now able to be detected after... commit b44cbb26efe1d0b0950b1e1613e131b506dc3876 Author: Noel Grandin Date: Tue Jan 20 12:38:10 2015 +0200 new loplugin: change virtual methods to non-virtual Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I605e2fa56f7186c3d3a764f3cd30f5cf7f881f9d --- svl/source/items/style.cxx | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'svl/source/items/style.cxx') diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index cddf81b31193..e75c0056d1dc 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -151,13 +151,7 @@ SfxStyleSheetBase::~SfxStyleSheetBase() } } -sal_uInt16 SfxStyleSheetBase::GetVersion() const -{ - return 0x0000; -} - // Change name - const OUString& SfxStyleSheetBase::GetName() const { return aName; @@ -207,13 +201,7 @@ OUString SfxStyleSheetBase::GetDisplayName() const } } -void SfxStyleSheetBase::SetDisplayName( const OUString& rDisplayName ) -{ - maDisplayName = rDisplayName; -} - // Change Parent - const OUString& SfxStyleSheetBase::GetParent() const { return aParent; @@ -957,11 +945,6 @@ SfxStyleSheetBase* SfxStyleSheetPool::Create( const OUString& rName, return new SfxStyleSheet( rName, *this, eFam, mask ); } -SfxStyleSheetBase* SfxStyleSheetPool::Create( const SfxStyleSheet& r ) -{ - return new SfxStyleSheet( r ); -} - SfxUnoStyleSheet::SfxUnoStyleSheet( const OUString& _rName, const SfxStyleSheetBasePool& _rPool, SfxStyleFamily _eFamily, sal_uInt16 _nMaske ) : ::cppu::ImplInheritanceHelper2< SfxStyleSheet, ::com::sun::star::style::XStyle, ::com::sun::star::lang::XUnoTunnel >( _rName, _rPool, _eFamily, _nMaske ) { -- cgit