From 9f4f237a3834e5d58a87296424db5428f68d1550 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 17 Jul 2015 13:08:16 +0200 Subject: loplugin:unusedmethods svl Change-Id: If86cc43fda4d138cf7f678d81fa2b35f68f3c03b Reviewed-on: https://gerrit.libreoffice.org/17162 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- include/editeng/xmlcnitm.hxx | 2 -- include/svl/cintitem.hxx | 12 ------------ include/svl/ctypeitm.hxx | 2 -- include/svl/custritm.hxx | 2 -- include/svl/documentlockfile.hxx | 3 --- include/svl/eitem.hxx | 3 --- include/svl/int64item.hxx | 2 -- include/svl/intitem.hxx | 3 --- include/svl/poolitem.hxx | 1 - include/svl/style.hxx | 3 --- include/svl/visitem.hxx | 3 --- 11 files changed, 36 deletions(-) (limited to 'include') diff --git a/include/editeng/xmlcnitm.hxx b/include/editeng/xmlcnitm.hxx index 25df0a420cdc..c9725e4ad912 100644 --- a/include/editeng/xmlcnitm.hxx +++ b/include/editeng/xmlcnitm.hxx @@ -41,8 +41,6 @@ public: virtual ~SvXMLAttrContainerItem(); virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; - using SfxPoolItem::Compare; - virtual int Compare( const SfxPoolItem &rWith ) const SAL_OVERRIDE; virtual bool GetPresentation( SfxItemPresentation ePresentation, diff --git a/include/svl/cintitem.hxx b/include/svl/cintitem.hxx index 710e5e43e897..022b3c236bae 100644 --- a/include/svl/cintitem.hxx +++ b/include/svl/cintitem.hxx @@ -42,9 +42,6 @@ public: virtual bool operator ==(const SfxPoolItem & rItem) const SAL_OVERRIDE; - using SfxPoolItem::Compare; - virtual int Compare(const SfxPoolItem & rWith) const SAL_OVERRIDE; - virtual bool GetPresentation(SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString & rText, @@ -95,9 +92,6 @@ public: virtual bool operator ==(const SfxPoolItem & rItem) const SAL_OVERRIDE; - using SfxPoolItem::Compare; - virtual int Compare(const SfxPoolItem & rWith) const SAL_OVERRIDE; - virtual bool GetPresentation(SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString & rText, @@ -148,9 +142,6 @@ public: virtual bool operator ==(const SfxPoolItem & rItem) const SAL_OVERRIDE; - using SfxPoolItem::Compare; - virtual int Compare(const SfxPoolItem & rWith) const SAL_OVERRIDE; - virtual bool GetPresentation(SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString & rText, @@ -201,9 +192,6 @@ public: virtual bool operator ==(const SfxPoolItem & rItem) const SAL_OVERRIDE; - using SfxPoolItem::Compare; - virtual int Compare(const SfxPoolItem & rWith) const SAL_OVERRIDE; - virtual bool GetPresentation(SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString & rText, diff --git a/include/svl/ctypeitm.hxx b/include/svl/ctypeitm.hxx index 11a4e97f8129..83ca3e404de2 100644 --- a/include/svl/ctypeitm.hxx +++ b/include/svl/ctypeitm.hxx @@ -49,8 +49,6 @@ public: void SetValue( const OUString& rNewVal ); - using SfxPoolItem::Compare; - virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, diff --git a/include/svl/custritm.hxx b/include/svl/custritm.hxx index e8e321caf1e5..ab2b23ea13b2 100644 --- a/include/svl/custritm.hxx +++ b/include/svl/custritm.hxx @@ -46,8 +46,6 @@ public: virtual bool operator ==(const SfxPoolItem & rItem) const SAL_OVERRIDE; - virtual int Compare(const SfxPoolItem & rWith) const SAL_OVERRIDE; - virtual bool GetPresentation(SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString & rText, diff --git a/include/svl/documentlockfile.hxx b/include/svl/documentlockfile.hxx index 944999450281..23403c85dbcd 100644 --- a/include/svl/documentlockfile.hxx +++ b/include/svl/documentlockfile.hxx @@ -50,9 +50,6 @@ public: bool OverwriteOwnLockFile(); void RemoveFile(); - // the methods allow to control whether UI interaction regarding the locked document file is allowed - // this is a workaround for automated tests - static void AllowInteraction( bool bAllow ) { m_bAllowInteraction = bAllow; } static bool IsInteractionAllowed() { return m_bAllowInteraction; } }; diff --git a/include/svl/eitem.hxx b/include/svl/eitem.hxx index d01ce77a3367..add2a5f87ce3 100644 --- a/include/svl/eitem.hxx +++ b/include/svl/eitem.hxx @@ -88,9 +88,6 @@ public: // SfxPoolItem virtual bool operator ==(const SfxPoolItem & rItem) const SAL_OVERRIDE; - using SfxPoolItem::Compare; - virtual int Compare(const SfxPoolItem & rWith) const SAL_OVERRIDE; - virtual bool GetPresentation(SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString & rText, diff --git a/include/svl/int64item.hxx b/include/svl/int64item.hxx index 45e6a8aabd76..662b8e8f7768 100644 --- a/include/svl/int64item.hxx +++ b/include/svl/int64item.hxx @@ -26,8 +26,6 @@ public: virtual bool operator== ( const SfxPoolItem& rItem ) const SAL_OVERRIDE; - virtual int Compare( const SfxPoolItem& r ) const SAL_OVERRIDE; - virtual bool GetPresentation( SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString& rText, const IntlWrapper* pIntlWrapper = NULL ) const SAL_OVERRIDE; diff --git a/include/svl/intitem.hxx b/include/svl/intitem.hxx index 12536c4c9de7..546084b7fbbc 100644 --- a/include/svl/intitem.hxx +++ b/include/svl/intitem.hxx @@ -59,9 +59,6 @@ public: virtual bool operator ==(const SfxPoolItem & rItem) const SAL_OVERRIDE; - using SfxPoolItem::Compare; - virtual int Compare(const SfxPoolItem & rWith) const SAL_OVERRIDE; - virtual bool GetPresentation(SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString & rText, diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index 06c7f7f6d323..57e9749c93d4 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -169,7 +169,6 @@ public: virtual bool operator==( const SfxPoolItem& ) const = 0; bool operator!=( const SfxPoolItem& rItem ) const { return !(*this == rItem); } - virtual int Compare( const SfxPoolItem &rWith ) const; /** @return true if it has a valid string representation */ virtual bool GetPresentation( SfxItemPresentation ePresentation, diff --git a/include/svl/style.hxx b/include/svl/style.hxx index 43849dd4977c..dafa95ecf30b 100644 --- a/include/svl/style.hxx +++ b/include/svl/style.hxx @@ -75,7 +75,6 @@ class SVL_DLLPUBLIC SfxStyleSheetBase : public comphelper::OWeakTypeObject { private: friend class SfxStyleSheetBasePool; - SVL_DLLPRIVATE static SfxStyleSheetBasePool& implGetStaticPool(); protected: SfxStyleSheetBasePool* pPool; // related pool @@ -218,8 +217,6 @@ public: SfxStyleSheetBasePool( SfxItemPool& ); SfxStyleSheetBasePool( const SfxStyleSheetBasePool& ); - const OUString& GetAppName() const { return aAppName; } - SfxItemPool& GetPool() { return rPool;} const SfxItemPool& GetPool() const { return rPool;} diff --git a/include/svl/visitem.hxx b/include/svl/visitem.hxx index 109b631f93fc..cceef2925629 100644 --- a/include/svl/visitem.hxx +++ b/include/svl/visitem.hxx @@ -47,9 +47,6 @@ public: virtual bool operator ==(const SfxPoolItem & rItem) const SAL_OVERRIDE; - using SfxPoolItem::Compare; - virtual int Compare(const SfxPoolItem & rWith) const SAL_OVERRIDE; - virtual bool GetPresentation(SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString & rText, -- cgit