[Libreoffice-commits] .: autodoc/source chart2/source codemaker/source connectivity/source UnoControls/source

Takeshi Abe tabe at kemper.freedesktop.org
Tue Jun 5 09:05:03 PDT 2012


 UnoControls/source/base/basecontainercontrol.cxx   |   10 -------
 UnoControls/source/controls/framecontrol.cxx       |   22 ---------------
 autodoc/source/parser_i/idoc/cx_dsapi.cxx          |    7 -----
 chart2/source/tools/NameContainer.cxx              |    4 --
 chart2/source/view/charttypes/AreaChart.cxx        |   14 ----------
 chart2/source/view/charttypes/CandleStickChart.cxx |   15 ----------
 chart2/source/view/inc/PlottingPositionHelper.hxx  |    8 -----
 codemaker/source/cppumaker/cpputype.cxx            |   29 ---------------------
 connectivity/source/drivers/mozab/MTables.cxx      |    5 ---
 connectivity/source/drivers/mysql/YTables.cxx      |   12 --------
 10 files changed, 126 deletions(-)

New commits:
commit f7ebee38a3c5c6cb58f40109a213d449138ea987
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Tue Jun 5 22:59:19 2012 +0900

    removed dead code
    
    Change-Id: I02e535f0a0e55446e5a29297c2d05b1503805e71

diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx
index f219b3f..02a0f53 100644
--- a/UnoControls/source/base/basecontainercontrol.cxx
+++ b/UnoControls/source/base/basecontainercontrol.cxx
@@ -575,16 +575,6 @@ WindowDescriptor* BaseContainerControl::impl_getWindowDescriptor ( const Referen
 
 void BaseContainerControl::impl_paint ( sal_Int32 /*nX*/, sal_Int32 /*nY*/, const Reference< XGraphics > & /*rGraphics*/ )
 {
-/*
-    if (rGraphics.is())
-    {
-        for ( size_t n = maControlInfoList.size(); n; )
-        {
-            ControlInfo* pSearchControl = maControlInfoList[ --n ];
-            pSearchControl->xControl->paint ( nX, nY, rGraphics ) ;
-        }
-    }
-*/
 }
 
 //____________________________________________________________________________________________________________
diff --git a/UnoControls/source/controls/framecontrol.cxx b/UnoControls/source/controls/framecontrol.cxx
index 49f3ed8..0504a11 100644
--- a/UnoControls/source/controls/framecontrol.cxx
+++ b/UnoControls/source/controls/framecontrol.cxx
@@ -426,28 +426,6 @@ IPropertyArrayHelper& FrameControl::getInfoHelper()
 
     return *pInfo ;
 }
-/*
-//--------------------------------------------------------------------------------------------------
-// start OConnectionPointContainerHelper
-//--------------------------------------------------------------------------------------------------
-Uik* FrameControl::getConnectionPointUiks ( sal_Int32* pCount ) const
-{
-    static Uik szUiks[] =
-    {
-        ((XEventListener*)NULL)->getSmartUik  (),
-        ::getCppuType((const Reference< XPropertyChangeListener >*)0),
-        ::getCppuType((const Reference< XVetoableChangeListener >*)0),
-        ::getCppuType((const Reference< XPropertiesChangeListener >*)0)
-    } ;
-
-    *pCount = 4 ;
-
-    return szUiks ;
-}
-//--------------------------------------------------------------------------------------------------
-// end OConnectionPointContainerHelper
-//--------------------------------------------------------------------------------------------------
-*/
 
 //____________________________________________________________________________________________________________
 //  OPropertySetHelper
diff --git a/autodoc/source/parser_i/idoc/cx_dsapi.cxx b/autodoc/source/parser_i/idoc/cx_dsapi.cxx
index 662af48..21b8595 100644
--- a/autodoc/source/parser_i/idoc/cx_dsapi.cxx
+++ b/autodoc/source/parser_i/idoc/cx_dsapi.cxx
@@ -305,13 +305,6 @@ Context_Docu::SetupStateMachine()
 
     // constants for use in the table:
     const INT16 ght = goto_EoHtml;
-/*
-    const INT16 gxc = goto_EoXmlConst;
-    const INT16 glb = goto_EoXmlLink_TagBegin;
-    const INT16 gle = goto_EoXmlLink_TagEnd;
-    const INT16 gfb = goto_EoXmlFormat_TagBegin;
-    const INT16 gfe = goto_EoXmlFormat_TagEnd;
-*/
     const INT16 err = finError;
     const INT16 faw = finAnyWord;
 //  const INT16 fig = finIgnore;
diff --git a/chart2/source/tools/NameContainer.cxx b/chart2/source/tools/NameContainer.cxx
index a0d2a4f..52bf75e 100644
--- a/chart2/source/tools/NameContainer.cxx
+++ b/chart2/source/tools/NameContainer.cxx
@@ -29,10 +29,6 @@
 
 #include "NameContainer.hxx"
 
-/*
-//SvXMLUnitConverter
-#include <xmloff/xmluconv.hxx>
-*/
 #include <com/sun/star/uno/Any.hxx>
 
 using namespace ::com::sun::star;
diff --git a/chart2/source/view/charttypes/AreaChart.cxx b/chart2/source/view/charttypes/AreaChart.cxx
index bcc2456..0d8b299 100644
--- a/chart2/source/view/charttypes/AreaChart.cxx
+++ b/chart2/source/view/charttypes/AreaChart.cxx
@@ -168,20 +168,6 @@ uno::Any AreaChart::getExplicitSymbol( const VDataSeries& rSeries, sal_Int32 nPo
     return aRet;
 }
 
-//-----------------------------------------------------------------
-// lang::XServiceInfo
-//-----------------------------------------------------------------
-/*
-APPHELPER_XSERVICEINFO_IMPL(AreaChart,CHART2_VIEW_AREACHART_SERVICE_IMPLEMENTATION_NAME)
-
-    uno::Sequence< rtl::OUString > AreaChart
-::getSupportedServiceNames_Static()
-{
-    uno::Sequence< rtl::OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = CHART2_VIEW_AREACHART_SERVICE_NAME;
-    return aSNS;
-}
-*/
 drawing::Direction3D AreaChart::getPreferredDiagramAspectRatio() const
 {
     if( m_nKeepAspectRatio == 1 )
diff --git a/chart2/source/view/charttypes/CandleStickChart.cxx b/chart2/source/view/charttypes/CandleStickChart.cxx
index 9be7286..6eb59ea 100644
--- a/chart2/source/view/charttypes/CandleStickChart.cxx
+++ b/chart2/source/view/charttypes/CandleStickChart.cxx
@@ -87,21 +87,6 @@ LegendSymbolStyle CandleStickChart::getLegendSymbolStyle()
     return LegendSymbolStyle_LINE;
 }
 
-//-----------------------------------------------------------------
-// lang::XServiceInfo
-//-----------------------------------------------------------------
-/*
-APPHELPER_XSERVICEINFO_IMPL(CandleStickChart,CHART2_VIEW_CANDLESTICKCHART_SERVICE_IMPLEMENTATION_NAME)
-
-    uno::Sequence< rtl::OUString > CandleStickChart
-::getSupportedServiceNames_Static()
-{
-    uno::Sequence< rtl::OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = CHART2_VIEW_CANDLESTICKCHART_SERVICE_NAME;
-    return aSNS;
-}
-*/
-
 drawing::Direction3D CandleStickChart::getPreferredDiagramAspectRatio() const
 {
     return drawing::Direction3D(-1,-1,-1);
diff --git a/chart2/source/view/inc/PlottingPositionHelper.hxx b/chart2/source/view/inc/PlottingPositionHelper.hxx
index a54365e..932cbb0 100644
--- a/chart2/source/view/inc/PlottingPositionHelper.hxx
+++ b/chart2/source/view/inc/PlottingPositionHelper.hxx
@@ -41,10 +41,6 @@
 #include <com/sun/star/drawing/XShapes.hpp>
 #include <basegfx/matrix/b3dhommatrix.hxx>
 
-/*
-//for WeakImplHelper1
-#include <cppuhelper/implbase1.hxx>
-*/
 //.............................................................................
 namespace chart
 {
@@ -52,10 +48,6 @@ namespace chart
 
 class ShapeFactory;
 
-//-----------------------------------------------------------------------------
-/**
-*/
-
 class PlottingPositionHelper
 {
 public:
diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx
index b4eac78..7fc720a 100644
--- a/codemaker/source/cppumaker/cpputype.cxx
+++ b/codemaker/source/cppumaker/cpputype.cxx
@@ -4569,33 +4569,4 @@ bool produceType(RegistryKey& rTypeKey, bool bIsExtraType,
     return ret;
 }
 
-//*************************************************************************
-// scopedName
-//*************************************************************************
-/*
-OString scopedName(const OString& scope, const OString& type,
-                   sal_Bool bNoNameSpace)
-{
-    sal_Int32 nPos = type.lastIndexOf( '/' );
-    if (nPos == -1)
-        return type;
-
-    OStringBuffer tmpBuf(type.getLength()*2);
-    nPos = 0;
-    do
-    {
-        tmpBuf.append("::");
-        OString token(type.getToken(0, '/', nPos));
-        if (nPos != -1)
-            tmpBuf.append(translateUnoToCppIndentifier(
-                              token, "module", ITM_KEYWORDSONLY));
-        else
-            tmpBuf.append(translateUnoToCppIndentifier(
-                              token, "interface", ITM_KEYWORDSONLY));
-    } while( nPos != -1 );
-
-    return tmpBuf.makeStringAndClear();
-}
-*/
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/connectivity/source/drivers/mozab/MTables.cxx b/connectivity/source/drivers/mozab/MTables.cxx
index dfa7b99..22974a2 100644
--- a/connectivity/source/drivers/mozab/MTables.cxx
+++ b/connectivity/source/drivers/mozab/MTables.cxx
@@ -56,16 +56,11 @@ using namespace dbtools;
 sdbcx::ObjectType OTables::createObject(const ::rtl::OUString& _rName)
 {
     ::rtl::OUString aName,aSchema;
-    // sal_Int32 nLen = _rName.indexOf('.');
-    // aSchema = _rName.copy(0,nLen);
-    // aName    = _rName.copy(nLen+1);
     aSchema = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("%"));
     aName = _rName;
 
     Sequence< ::rtl::OUString > aTypes(1);
     aTypes[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("%"));
-    //  aTypes[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("TABLE"));
-    //  aTypes[1] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("SYSTEMTABLE"));
 
     Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),aSchema,aName,aTypes);
 
diff --git a/connectivity/source/drivers/mysql/YTables.cxx b/connectivity/source/drivers/mysql/YTables.cxx
index e77a220..38a49d4 100644
--- a/connectivity/source/drivers/mysql/YTables.cxx
+++ b/connectivity/source/drivers/mysql/YTables.cxx
@@ -80,18 +80,6 @@ sdbcx::ObjectType OTables::createObject(const ::rtl::OUString& _rName)
         Reference< XRow > xRow(xResult,UNO_QUERY);
         if ( xResult->next() ) // there can be only one table with this name
         {
-//          Reference<XStatement> xStmt = m_xConnection->createStatement();
-//          if ( xStmt.is() )
-//          {
-//              Reference< XResultSet > xPrivRes = xStmt->executeQuery();
-//              Reference< XRow > xPrivRow(xPrivRes,UNO_QUERY);
-//              while ( xPrivRes.is() && xPrivRes->next() )
-//              {
-//                  if ( xPrivRow->getString(1) )
-//                  {
-//                  }
-//              }
-//          }
             sal_Int32 nPrivileges = Privilege::DROP         |
                                     Privilege::REFERENCE    |
                                     Privilege::ALTER        |


More information about the Libreoffice-commits mailing list