[Libreoffice-commits] core.git: 6 commits - basegfx/source cppuhelper/source stoc/source svl/source unotools/source

Stephan Bergmann sbergman at redhat.com
Tue Apr 1 00:23:58 PDT 2014


 basegfx/source/polygon/b2dpolygon.cxx       |   33 ----------------------------
 cppuhelper/source/factory.cxx               |   11 ---------
 stoc/source/namingservice/namingservice.cxx |    5 ----
 svl/source/fsstor/fsstorage.cxx             |   11 ---------
 svl/source/misc/strmadpt.cxx                |   11 ---------
 unotools/source/ucbhelper/ucblockbytes.cxx  |    3 --
 6 files changed, 74 deletions(-)

New commits:
commit ac1e33b069e0fb9136ac1e0807610adb4b2990ee
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 1 09:23:08 2014 +0200

    Remove unused inline function
    
    Change-Id: Ib1e05194fd51b914da45cbdfb75e142be5d852fe

diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx
index 8023efb..83ea628 100644
--- a/svl/source/misc/strmadpt.cxx
+++ b/svl/source/misc/strmadpt.cxx
@@ -87,8 +87,6 @@ public:
     bool addMark(sal_uInt32 nPosition);
     bool removeMark(sal_uInt32 nPosition);
 
-    inline sal_uInt32 getReadPosition() const;
-
     SeekResult setReadPosition(sal_uInt32 nPosition);
 };
 
@@ -123,15 +121,6 @@ inline bool SvDataPipe_Impl::isEOF() const
            && (!m_pReadPage || m_pReadPage->m_pRead == m_pReadPage->m_pEnd);
 }
 
-inline sal_uInt32 SvDataPipe_Impl::getReadPosition() const
-{
-    return m_pReadPage == 0 ? 0 :
-                              m_pReadPage->m_nOffset
-                                  + (m_pReadPage->m_pRead
-                                         - m_pReadPage->m_aBuffer);
-}
-
-
 //  SvOutputStreamOpenLockBytes
 
 
commit 43f55e39668858e110bf7f3735486bdf14025b4e
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 1 09:22:57 2014 +0200

    Remove unused inline constructor
    
    Change-Id: I1fbf53c19c55a37d4802be0828cc13bd6bba8f67

diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index 6a13862..d1f2f13 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -97,17 +97,6 @@ struct FSStorage_Impl
     uno::Reference< uno::XComponentContext > m_xContext;
 
 
-    FSStorage_Impl( const OUString& aURL, sal_Int32 nMode, uno::Reference< uno::XComponentContext > xContext )
-    : m_aURL( aURL )
-    , m_pContent( NULL )
-    , m_nMode( nMode )
-    , m_pListenersContainer( NULL )
-    , m_pTypeCollection( NULL )
-    , m_xContext( xContext )
-    {
-        OSL_ENSURE( !m_aURL.isEmpty(), "The URL must not be empty" );
-    }
-
     FSStorage_Impl( const ::ucbhelper::Content& aContent, sal_Int32 nMode, uno::Reference< uno::XComponentContext > xContext )
     : m_aURL( aContent.getURL() )
     , m_pContent( new ::ucbhelper::Content( aContent ) )
commit 82b517de560008673a204911b35aad4c7c297f14
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 1 09:22:39 2014 +0200

    Remove unused inline function
    
    Change-Id: I5601a1d6d37f5d30d50bbe22e1079d8c6acf2c4b

diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx
index 6585818..8193fa6 100644
--- a/unotools/source/ucbhelper/ucblockbytes.cxx
+++ b/unotools/source/ucbhelper/ucblockbytes.cxx
@@ -79,9 +79,6 @@ public:
                                 : m_xLockBytes( pLockBytes )
                             {}
 
-    SvLockBytes*            getLockBytes (void)
-                            { return m_xLockBytes; }
-
     // XActiveDataControl.
     virtual void SAL_CALL   addListener ( const Reference<XStreamListener> &/*rxListener*/) throw(RuntimeException, std::exception) SAL_OVERRIDE {}
     virtual void SAL_CALL   removeListener ( const Reference<XStreamListener> &/*rxListener*/) throw(RuntimeException, std::exception) SAL_OVERRIDE {}
commit 288efb1b481abf6156d7ddaa68e4ea6d215f4875
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 1 09:22:21 2014 +0200

    Remove unused inline function
    
    Change-Id: Ieafdefb5a6981ee2f375cb9ba852de7b21688b42

diff --git a/stoc/source/namingservice/namingservice.cxx b/stoc/source/namingservice/namingservice.cxx
index 93ab149..a4cb8f3 100644
--- a/stoc/source/namingservice/namingservice.cxx
+++ b/stoc/source/namingservice/namingservice.cxx
@@ -98,11 +98,6 @@ public:
     throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     virtual Sequence< OUString > SAL_CALL getSupportedServiceNames()
     throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
-    static Sequence< OUString > SAL_CALL getSupportedServiceNames_Static()
-    {
-        OUString aStr( SERVICENAME );
-        return Sequence< OUString >( &aStr, 1 );
-    }
 
     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRegisteredObject( const OUString& Name ) throw(Exception, RuntimeException, std::exception) SAL_OVERRIDE;
     virtual void SAL_CALL registerObject( const OUString& Name, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Object ) throw(Exception, RuntimeException, std::exception) SAL_OVERRIDE;
commit c1395fe0612aca4b1928e239a72c7faff574d8bd
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 1 09:22:00 2014 +0200

    Remove unused inline constructor
    
    Change-Id: I33b5d11f850bf405ef5fcf2e6f1fe380287304d0

diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx
index b3d89bd..460f119 100644
--- a/cppuhelper/source/factory.cxx
+++ b/cppuhelper/source/factory.cxx
@@ -80,17 +80,6 @@ public:
                 aServiceNames = *pServiceNames_;
         }
 
-    // old function, only for backward compatibility
-    OSingleFactoryHelper(
-        const Reference<XMultiServiceFactory > & rServiceManager,
-        const OUString & rImplementationName_ )
-        SAL_THROW(())
-        : xSMgr( rServiceManager )
-        , pCreateFunction( NULL )
-        , m_fptr( 0 )
-        , aImplementationName( rImplementationName_ )
-        {}
-
     virtual ~OSingleFactoryHelper();
 
     // XInterface
commit 5a3c49c2a158376a7469fe96b695689eb92e4c0d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 1 09:21:36 2014 +0200

    Remove unused inline functions
    
    Change-Id: Ib9cb71a730a8e1480c897ecab2bc502d419f3029

diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx
index 4aa2ad4..34eddd7 100644
--- a/basegfx/source/polygon/b2dpolygon.cxx
+++ b/basegfx/source/polygon/b2dpolygon.cxx
@@ -318,11 +318,6 @@ public:
         }
     }
 
-    sal_uInt32 count() const
-    {
-        return maVector.size();
-    }
-
     bool operator==(const ControlVectorArray2D& rCandidate) const
     {
         return (maVector == rCandidate.maVector);
@@ -874,12 +869,6 @@ public:
         return (mpControlVector && mpControlVector->isUsed());
     }
 
-    void resetControlVectors(sal_uInt32 nIndex)
-    {
-        setPrevControlVector(nIndex, basegfx::B2DVector::getEmptyVector());
-        setNextControlVector(nIndex, basegfx::B2DVector::getEmptyVector());
-    }
-
     void resetControlVectors()
     {
         mpBufferedData.reset();
@@ -1159,28 +1148,6 @@ public:
             maPoints.transform(rMatrix);
         }
     }
-
-    const basegfx::B2DPoint* begin() const
-    {
-        return maPoints.begin();
-    }
-
-    const basegfx::B2DPoint* end() const
-    {
-        return maPoints.end();
-    }
-
-    basegfx::B2DPoint* begin()
-    {
-       mpBufferedData.reset();
-       return maPoints.begin();
-    }
-
-    basegfx::B2DPoint* end()
-    {
-        mpBufferedData.reset();
-        return maPoints.end();
-    }
 };
 
 


More information about the Libreoffice-commits mailing list