[Libreoffice-commits] core.git: basebmp/source include/basebmp include/tools unoxml/source

Noel Grandin noel at peralex.com
Mon Jul 6 02:07:19 PDT 2015


 basebmp/source/bitmapdevice.cxx  |    7 -------
 include/basebmp/bitmapdevice.hxx |    1 -
 include/tools/inetmime.hxx       |   14 --------------
 include/tools/inetmsg.hxx        |   10 ----------
 unoxml/source/dom/saxbuilder.hxx |    2 --
 5 files changed, 34 deletions(-)

New commits:
commit c760932fae3c2763a8b573511a5ad1e0f2b75ca7
Author: Noel Grandin <noel at peralex.com>
Date:   Thu Jul 2 15:55:46 2015 +0200

    loplugin:unusedmethods basebmp
    
    Change-Id: I9e89fea4e94a91edbbe355780c2a12d6e6cb6e4a
    Reviewed-on: https://gerrit.libreoffice.org/16728
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index c31cd57..41a32fe 100644
--- a/basebmp/source/bitmapdevice.cxx
+++ b/basebmp/source/bitmapdevice.cxx
@@ -412,13 +412,6 @@ namespace
             return boost::dynamic_pointer_cast<alphamask_bitmap_type>( bmp );
         }
 
-        virtual bool isCompatibleAlphaMask( const BitmapDeviceSharedPtr& bmp ) const SAL_OVERRIDE
-        {
-            // TODO(P1): dynamic_cast usually called twice for
-            // compatible formats
-            return getCompatibleAlphaMask( bmp ).get() != NULL;
-        }
-
         virtual void clear_i( Color                   fillColor,
                               const basegfx::B2IBox&  rBounds ) SAL_OVERRIDE
         {
diff --git a/include/basebmp/bitmapdevice.hxx b/include/basebmp/bitmapdevice.hxx
index 5953741..7668f9c 100644
--- a/include/basebmp/bitmapdevice.hxx
+++ b/include/basebmp/bitmapdevice.hxx
@@ -567,7 +567,6 @@ protected:
 private:
     BASEBMP_DLLPRIVATE virtual bool isCompatibleBitmap( const BitmapDeviceSharedPtr& bmp ) const = 0;
     BASEBMP_DLLPRIVATE virtual bool isCompatibleClipMask( const BitmapDeviceSharedPtr& bmp ) const = 0;
-    BASEBMP_DLLPRIVATE virtual bool isCompatibleAlphaMask( const BitmapDeviceSharedPtr& bmp ) const = 0;
 
     BASEBMP_DLLPRIVATE virtual void clear_i( Color                  fillColor,
                                              const basegfx::B2IBox& rBounds ) = 0;
diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx
index b791060..5766660 100644
--- a/include/tools/inetmime.hxx
+++ b/include/tools/inetmime.hxx
@@ -717,14 +717,6 @@ public:
 
     /** Write a sequence of octets.
 
-        @param pBegin  Points to the start of the sequence, must not be null.
-
-        @param pEnd  Points past the end of the sequence, must be >= pBegin.
-     */
-    inline void write(const sal_Char * pBegin, const sal_Char * pEnd);
-
-    /** Write a sequence of octets.
-
         @descr  The supplied sequence of Unicode characters is interpreted as
         a sequence of octets.  It is an error if any of the elements of the
         sequence has a numerical value greater than 255.
@@ -789,12 +781,6 @@ public:
     static inline INetMIMEOutputSink & endl(INetMIMEOutputSink & rSink);
 };
 
-inline void INetMIMEOutputSink::write(const sal_Char * pBegin,
-                                      const sal_Char * pEnd)
-{
-    writeSequence(pBegin, pEnd);
-    m_nColumn += pEnd - pBegin;
-}
 
 inline void INetMIMEOutputSink::write(const sal_Unicode * pBegin,
                                       const sal_Unicode * pEnd)
diff --git a/include/tools/inetmsg.hxx b/include/tools/inetmsg.hxx
index 3bca8fa..c064a0d 100644
--- a/include/tools/inetmsg.hxx
+++ b/include/tools/inetmsg.hxx
@@ -159,16 +159,6 @@ class TOOLS_DLLPUBLIC INetMIMEMessage
     void CopyImp    (const INetMIMEMessage& rMsg);
     void SetHeaderParsed() { bHeaderParsed = true; }
 
-    OUString GetHeaderName_Impl (
-        sal_uIntPtr nIndex, rtl_TextEncoding eEncoding) const
-    {
-        if ( nIndex < m_aHeaderList.size() ) {
-            return OStringToOUString(m_aHeaderList[ nIndex ]->GetName(), eEncoding);
-        } else {
-            return OUString();
-        }
-    }
-
     OUString GetHeaderValue_Impl (
         sal_uIntPtr nIndex, INetMIME::HeaderFieldType eType) const
     {
diff --git a/unoxml/source/dom/saxbuilder.hxx b/unoxml/source/dom/saxbuilder.hxx
index ce8ce13..f15295c 100644
--- a/unoxml/source/dom/saxbuilder.hxx
+++ b/unoxml/source/dom/saxbuilder.hxx
@@ -61,8 +61,6 @@ namespace DOM
         NodeStack m_aNodeStack;
         NSStack m_aNSStack;
 
-        OUString resolvePrefix(const OUString& aPrefix);
-
         css::uno::Reference< css::xml::dom::XDocument > m_aDocument;
         css::uno::Reference< css::xml::dom::XDocumentFragment > m_aFragment;
         css::uno::Reference< css::xml::sax::XLocator > m_aLocator;


More information about the Libreoffice-commits mailing list