[Libreoffice-commits] .: connectivity/source toolkit/inc toolkit/source unusedcode.easy

Julien Nabet serval2412 at kemper.freedesktop.org
Tue Apr 17 13:09:57 PDT 2012


 connectivity/source/drivers/mozab/MResultSet.cxx |   14 --------------
 connectivity/source/drivers/mozab/MResultSet.hxx |    1 -
 toolkit/inc/toolkit/awt/vclxdevice.hxx           |    1 -
 toolkit/inc/toolkit/awt/vclxwindows.hxx          |    1 -
 toolkit/source/awt/vclxdevice.cxx                |    5 -----
 toolkit/source/awt/vclxwindows.cxx               |    7 -------
 unusedcode.easy                                  |    3 ---
 7 files changed, 32 deletions(-)

New commits:
commit 393b14fddd7b328a6e2af78c0c351447ccb0ba6a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Tue Apr 17 22:08:56 2012 +0200

    Remove some unused methods

diff --git a/connectivity/source/drivers/mozab/MResultSet.cxx b/connectivity/source/drivers/mozab/MResultSet.cxx
index ed92e42..6e1cdbe 100644
--- a/connectivity/source/drivers/mozab/MResultSet.cxx
+++ b/connectivity/source/drivers/mozab/MResultSet.cxx
@@ -717,16 +717,6 @@ void SAL_CALL OResultSet::release() throw()
 {
     return ::cppu::OPropertySetHelper::createPropertySetInfo(getInfoHelper());
 }
-// -----------------------------------------------------------------------------
-void OResultSet::initializeRow(OValueRow& _rRow,sal_Int32 _nColumnCount)
-{
-    if(!_rRow.is())
-    {
-        _rRow   = new OValueVector(_nColumnCount);
-        (_rRow->get())[0].setBound(sal_True);
-        ::std::for_each(_rRow->get().begin()+1,_rRow->get().end(),TSetBound(sal_False));
-    }
-}
 
 // -------------------------------------------------------------------------
 void OResultSet::parseParameter( const OSQLParseNode* pNode, rtl::OUString& rMatchString )
@@ -1205,10 +1195,6 @@ void SAL_CALL OResultSet::executeQuery() throw( ::com::sun::star::sdbc::SQLExcep
 
     OSL_ENSURE(m_xColumns.is(), "Need the Columns!!");
 
-    // sal_Int32 nColumnCount = m_xColumns->size();
-    // initializeRow(m_aRow,nColumnCount);
-    // initializeRow(m_aEvaluateRow,nColumnCount);
-
     switch( m_pSQLIterator->getStatementType() )
     {
         case SQL_STATEMENT_SELECT:
diff --git a/connectivity/source/drivers/mozab/MResultSet.hxx b/connectivity/source/drivers/mozab/MResultSet.hxx
index 47e9ad1..2559b7f 100644
--- a/connectivity/source/drivers/mozab/MResultSet.hxx
+++ b/connectivity/source/drivers/mozab/MResultSet.hxx
@@ -258,7 +258,6 @@ protected:
 
             void parseParameter( const OSQLParseNode* pNode, rtl::OUString& rMatchString );
             void fillRowData() throw( ::com::sun::star::sdbc::SQLException );
-            void initializeRow(OValueRow& _rRow,sal_Int32 _nColumnCount);
             void analyseWhereClause( const OSQLParseNode*                 parseTree,
                                      MQueryExpression                    &queryExpression);
 
diff --git a/toolkit/inc/toolkit/awt/vclxdevice.hxx b/toolkit/inc/toolkit/awt/vclxdevice.hxx
index fba5ec7..b800b2c 100644
--- a/toolkit/inc/toolkit/awt/vclxdevice.hxx
+++ b/toolkit/inc/toolkit/awt/vclxdevice.hxx
@@ -75,7 +75,6 @@ public:
     OutputDevice*           GetOutputDevice() const { return mpOutputDevice; }
 
     void                    SetCreatedWithToolkit( sal_Bool bCreatedWithToolkit );
-    sal_Bool                IsCreatedWithToolkit() const;
 
     // ::com::sun::star::uno::XInterface
     ::com::sun::star::uno::Any                  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
diff --git a/toolkit/inc/toolkit/awt/vclxwindows.hxx b/toolkit/inc/toolkit/awt/vclxwindows.hxx
index 3949b54..a1f0784 100644
--- a/toolkit/inc/toolkit/awt/vclxwindows.hxx
+++ b/toolkit/inc/toolkit/awt/vclxwindows.hxx
@@ -338,7 +338,6 @@ public:
     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
 
-    ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > getFirstActionListener ();
 };
 
 //  ----------------------------------------------------
diff --git a/toolkit/source/awt/vclxdevice.cxx b/toolkit/source/awt/vclxdevice.cxx
index 40a5bb7..39c74b1 100644
--- a/toolkit/source/awt/vclxdevice.cxx
+++ b/toolkit/source/awt/vclxdevice.cxx
@@ -81,11 +81,6 @@ void VCLXDevice::SetCreatedWithToolkit( sal_Bool bCreatedWithToolkit )
         nFlags &= ~FLAGS_CREATEDWITHTOOLKIT;
 }
 
-sal_Bool VCLXDevice::IsCreatedWithToolkit() const
-{
-    return ( nFlags & FLAGS_CREATEDWITHTOOLKIT ) != 0;
-}
-
 // ::com::sun::star::uno::XInterface
 ::com::sun::star::uno::Any VCLXDevice::queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException)
 {
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 64a4ad8..b8d13e2 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -1335,13 +1335,6 @@ void VCLXRadioButton::ImplClickedOrToggled( sal_Bool bToggled )
     }
 }
 
-::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > VCLXRadioButton::getFirstActionListener ()
-{
-    if (!maItemListeners.getLength ())
-        return ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > ();
-    return maActionListeners.getElements()[0];
-}
-
 //  ----------------------------------------------------
 //  class VCLXSpinField
 //  ----------------------------------------------------
diff --git a/unusedcode.easy b/unusedcode.easy
index 7f3bb6c..04647b4 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -294,10 +294,8 @@ TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl()
 UnoControlBase::UnoControlBase()
 UnoControlModel::UnoControlModel()
 VCLUnoHelper::CreatePointer()
-VCLXDevice::IsCreatedWithToolkit() const
 VCLXPrinterServer::getImplementationId()
 VCLXPrinterServer::getTypes()
-VCLXRadioButton::getFirstActionListener()
 VbaFoundFilesEnum::SetFileList(com::sun::star::uno::Sequence<rtl::OUString>&)
 VbaFoundFilesEnum::VbaFoundFilesEnum()
 VclEventListeners2::~VclEventListeners2()
@@ -717,7 +715,6 @@ connectivity::SQLError::getSQLState(int) const
 connectivity::file::OStatement_Base::reset()
 connectivity::file::OStatement_Base::setWarning(com::sun::star::sdbc::SQLWarning const&)
 connectivity::mozab::MQueryHelper::next()
-connectivity::mozab::OResultSet::initializeRow(rtl::Reference<connectivity::ODeleteVector<connectivity::ORowSetValue> >&, int)
 connectivity::sdbcx::OGroup::OGroup(rtl::OUString const&, unsigned char)
 connectivity::sdbcx::OGroup::OGroup(unsigned char)
 connectivity::toString(com::sun::star::uno::Any const&)


More information about the Libreoffice-commits mailing list