[Libreoffice-commits] core.git: include/editeng include/svl include/vcl include/xmloff svl/source vcl/source writerfilter/source xmloff/source

Noel Grandin noel.grandin at collabora.co.uk
Tue Apr 4 06:39:07 UTC 2017


 include/editeng/charrotateitem.hxx               |    2 --
 include/svl/aeitem.hxx                           |    1 -
 include/vcl/imagerepository.hxx                  |    4 ----
 include/xmloff/fasttokenhandler.hxx              |    3 ---
 svl/source/items/aeitem.cxx                      |    7 -------
 vcl/source/image/ImageRepository.cxx             |    6 ------
 writerfilter/source/dmapper/NumberingManager.hxx |    1 -
 xmloff/source/core/fasttokenhandler.cxx          |    7 -------
 8 files changed, 31 deletions(-)

New commits:
commit e63116602b8f49508d0aef1dd1afe746a29cc219
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Mon Apr 3 16:19:02 2017 +0200

    loplugin:unusedmethods
    
    Change-Id: I30f9b6e68a7aa73782c980749e34f8f8d40ae57b
    Reviewed-on: https://gerrit.libreoffice.org/36047
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/include/editeng/charrotateitem.hxx b/include/editeng/charrotateitem.hxx
index 922cbdff11cb..fec33b5d4944 100644
--- a/include/editeng/charrotateitem.hxx
+++ b/include/editeng/charrotateitem.hxx
@@ -34,8 +34,6 @@
 class EDITENG_DLLPUBLIC SvxTextRotateItem : public SfxUInt16Item
 {
 public:
-    static SfxPoolItem* CreateDefault();
-
     SvxTextRotateItem(sal_uInt16 nValue, const sal_uInt16 nId);
 
     virtual SfxPoolItem*    Clone(SfxItemPool *pPool = nullptr) const override;
diff --git a/include/svl/aeitem.hxx b/include/svl/aeitem.hxx
index f0334fb0ca46..10aaa1f30d26 100644
--- a/include/svl/aeitem.hxx
+++ b/include/svl/aeitem.hxx
@@ -49,7 +49,6 @@ class SVL_DLLPUBLIC SfxAllEnumItem: public SfxAllEnumItem_Base
     std::size_t             GetPosByValue_( sal_uInt16 nValue ) const;
 
 public:
-                            SfxAllEnumItem();
     explicit                SfxAllEnumItem( sal_uInt16 nWhich);
                             SfxAllEnumItem( sal_uInt16 nWhich, sal_uInt16 nVal );
                             SfxAllEnumItem( sal_uInt16 nWhich, SvStream &rStream );
diff --git a/include/vcl/imagerepository.hxx b/include/vcl/imagerepository.hxx
index 5983825f4236..d7553802afe1 100644
--- a/include/vcl/imagerepository.hxx
+++ b/include/vcl/imagerepository.hxx
@@ -51,10 +51,6 @@ namespace vcl
             BitmapEx& _out_rImage,
             bool bSearchLanguageDependent
         );
-
-        static bool loadDefaultImage(
-            BitmapEx& _out_rImage
-        );
     };
 
 
diff --git a/include/xmloff/fasttokenhandler.hxx b/include/xmloff/fasttokenhandler.hxx
index 4a514f568170..ca20d687ad7f 100644
--- a/include/xmloff/fasttokenhandler.hxx
+++ b/include/xmloff/fasttokenhandler.hxx
@@ -26,9 +26,6 @@ public:
     explicit TokenMap();
             ~TokenMap();
 
-    /** Returns the token identifier for the passed OUString (UTF-16) token name. */
-    static sal_Int32 getTokenFromUnicode( const OUString& rUnicodeName );
-
     /** Returns the UTF-8 name of the passed token identifier as byte sequence. */
     css::uno::Sequence< sal_Int8 > getUtf8TokenName( sal_Int32 nToken ) const
     {
diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx
index d50b77d85761..819a0d61fa77 100644
--- a/svl/source/items/aeitem.cxx
+++ b/svl/source/items/aeitem.cxx
@@ -32,13 +32,6 @@ struct SfxAllEnumValue_Impl
 class SfxAllEnumValueArr : public std::vector<SfxAllEnumValue_Impl> {};
 
 
-SfxAllEnumItem::SfxAllEnumItem() :
-    SfxAllEnumItem_Base(0, 0),
-    pValues( nullptr ),
-    pDisabledValues( nullptr )
-{
-}
-
 SfxAllEnumItem::SfxAllEnumItem(sal_uInt16 which, sal_uInt16 nVal):
     SfxAllEnumItem_Base(which, nVal),
     pValues( nullptr ),
diff --git a/vcl/source/image/ImageRepository.cxx b/vcl/source/image/ImageRepository.cxx
index 7b9255f32348..5e14a70fdb47 100644
--- a/vcl/source/image/ImageRepository.cxx
+++ b/vcl/source/image/ImageRepository.cxx
@@ -32,12 +32,6 @@ namespace vcl
         return ImageTree::get().loadImage( _rName, sIconTheme, _out_rImage, _bSearchLanguageDependent );
     }
 
-    bool ImageRepository::loadDefaultImage( BitmapEx& _out_rImage)
-    {
-        OUString sIconTheme = Application::GetSettings().GetStyleSettings().DetermineIconTheme();
-        return ImageTree::get().loadDefaultImage( sIconTheme,_out_rImage);
-    }
-
 } // namespace vcl
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/writerfilter/source/dmapper/NumberingManager.hxx b/writerfilter/source/dmapper/NumberingManager.hxx
index cd09b3d10f9d..f2cb1d2c637e 100644
--- a/writerfilter/source/dmapper/NumberingManager.hxx
+++ b/writerfilter/source/dmapper/NumberingManager.hxx
@@ -86,7 +86,6 @@ public:
 
     // Getters
     const OUString& GetBulletChar( ) { return m_sBulletChar; };
-    const css::awt::Size& GetGraphicSize( ) { return m_aGraphicSize; };
     const std::shared_ptr< StyleSheetEntry >& GetParaStyle( ) { return m_pParaStyle; };
     bool isOutlineNumbering() const { return m_outline; }
 
diff --git a/xmloff/source/core/fasttokenhandler.cxx b/xmloff/source/core/fasttokenhandler.cxx
index 8c60bd15520f..22a1606b44b1 100644
--- a/xmloff/source/core/fasttokenhandler.cxx
+++ b/xmloff/source/core/fasttokenhandler.cxx
@@ -55,13 +55,6 @@ TokenMap::~TokenMap()
 {
 }
 
-sal_Int32 TokenMap::getTokenFromUnicode( const OUString& rUnicodeName )
-{
-    OString aUtf8Name = OUStringToOString( rUnicodeName, RTL_TEXTENCODING_UTF8 );
-    const struct xmltoken* pToken = Perfect_Hash::in_word_set( aUtf8Name.getStr(), aUtf8Name.getLength() );
-    return pToken ? pToken->nToken : XML_TOKEN_INVALID;
-}
-
 sal_Int32 TokenMap::getTokenPerfectHash( const char *pStr, sal_Int32 nLength )
 {
     const struct xmltoken *pToken = Perfect_Hash::in_word_set( pStr, nLength );


More information about the Libreoffice-commits mailing list