[Libreoffice-commits] .: sc/source

Takeshi Abe tabe at kemper.freedesktop.org
Tue Mar 1 10:15:03 PST 2011


 sc/source/ui/navipi/content.cxx          |   15 ---------------
 sc/source/ui/navipi/navcitem.cxx         |    4 ----
 sc/source/ui/undo/undoblk3.cxx           |    3 ---
 sc/source/ui/undo/undodat.cxx            |   19 -------------------
 sc/source/ui/undo/undotab.cxx            |    7 -------
 sc/source/ui/unoobj/appluno.cxx          |    6 ------
 sc/source/ui/unoobj/celllistsource.cxx   |    1 -
 sc/source/ui/unoobj/cellsuno.cxx         |    5 -----
 sc/source/ui/unoobj/cellvaluebinding.cxx |    1 -
 sc/source/ui/unoobj/chart2uno.cxx        |    8 --------
 sc/source/ui/unoobj/chartuno.cxx         |   10 ----------
 sc/source/ui/unoobj/dapiuno.cxx          |    2 +-
 sc/source/ui/unoobj/datauno.cxx          |    2 --
 sc/source/ui/unoobj/docuno.cxx           |   14 --------------
 sc/source/ui/unoobj/editsrc.cxx          |    2 --
 sc/source/ui/unoobj/fielduno.cxx         |   12 ------------
 sc/source/ui/unoobj/fmtuno.cxx           |    2 --
 sc/source/ui/unoobj/linkuno.cxx          |    4 ----
 sc/source/ui/unoobj/miscuno.cxx          |    1 -
 sc/source/ui/unoobj/nameuno.cxx          |    4 ----
 20 files changed, 1 insertion(+), 121 deletions(-)

New commits:
commit ce08f0fe367c8a1c24002076e00fb245e31fec79
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Wed Mar 2 03:14:31 2011 +0900

    Removed dead code

diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index f393a1b..2ad87f4 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -407,16 +407,6 @@ void ScContentTree::KeyInput( const KeyEvent& rKEvt )
         SvTreeListBox::KeyInput(rKEvt);
 }
 
-//BOOL ScContentTree::Drop( const DropEvent& rEvt )
-//{
-//	return pParentWindow->Drop(rEvt);			// Drop auf Navigator
-//}
-
-//BOOL ScContentTree::QueryDrop( DropEvent& rEvt )
-//{
-//	return pParentWindow->QueryDrop(rEvt);		// Drop auf Navigator
-//}
-
 sal_Int8 ScContentTree::AcceptDrop( const AcceptDropEvent& /* rEvt */ )
 {
     return DND_ACTION_NONE;
@@ -448,8 +438,6 @@ void ScContentTree::Command( const CommandEvent& rCEvt )
             //	den StarView MouseMove-Handler, der Command() aufruft, umbringen.
             //	Deshalb Drag&Drop asynchron:
 
-//			DoDrag();
-
             Application::PostUserEvent( STATIC_LINK( this, ScContentTree, ExecDragHdl ) );
 
             bDone = TRUE;
@@ -1298,7 +1286,6 @@ BOOL ScContentTree::LoadFile( const String& rUrl )
         Refresh();						// Inhalte aus geladenem Dokument holen
 
         pHiddenDocument = NULL;
-//		AdjustTitle();
 
         pParentWindow->GetDocNames( &aHiddenTitle );			// Liste fuellen
     }
@@ -1416,8 +1403,6 @@ void ScContentTree::SelectDoc(const String& rName)		// rName wie im Menue/Listbo
     if ( rName.Copy( nNotActiveStart ) == pParentWindow->aStrNotActive )
         aRealName = rName.Copy( 0, nNotActiveStart );
 
-    //
-
     BOOL bLoaded = FALSE;
 
         // ist es ein normal geladenes Doc ?
diff --git a/sc/source/ui/navipi/navcitem.cxx b/sc/source/ui/navipi/navcitem.cxx
index 9bf563a..1f0a669 100644
--- a/sc/source/ui/navipi/navcitem.cxx
+++ b/sc/source/ui/navipi/navcitem.cxx
@@ -64,7 +64,6 @@ void ScNavigatorControllerItem::StateChanged( USHORT /* nSID */, SfxItemState /*
         case SID_CURRENTCELL:
             if ( pItem )
             {
-//				const SfxPointItem* pCellPosItem = PTR_CAST(SfxPointItem, pItem);
                 const SfxStringItem* pCellPosItem = PTR_CAST(SfxStringItem, pItem);
 
                 DBG_ASSERT( pCellPosItem, "SfxStringItem expected!" );
@@ -78,9 +77,6 @@ void ScNavigatorControllerItem::StateChanged( USHORT /* nSID */, SfxItemState /*
                     SCCOL nCol = aScAddress.Col()+1;
                     SCROW nRow = aScAddress.Row()+1;
 
-//					SCCOL nCol = (USHORT)pCellPosItem->GetValue().X()+1;
-//					SCROW nRow = (USHORT)pCellPosItem->GetValue().Y()+1;
-
                     rNavigatorDlg.UpdateColumn( &nCol );
                     rNavigatorDlg.UpdateRow   ( &nRow );
                     rNavigatorDlg.CursorPosChanged();
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index 7908c20..d49b140 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -1730,7 +1730,6 @@ void ScUndoRefreshLink::Undo()
                     pRedoDoc->AddUndoTab( nTab, nTab, TRUE, TRUE );
                 bFirst = FALSE;
                 pDoc->CopyToDocument(aRange, IDF_ALL, FALSE, pRedoDoc);
-//				pRedoDoc->TransferDrawPage( pDoc, nTab, nTab );
                 pRedoDoc->SetLink( nTab,
                                    pDoc->GetLinkMode(nTab),
                                    pDoc->GetLinkDoc(nTab),
@@ -1742,7 +1741,6 @@ void ScUndoRefreshLink::Undo()
 
             pDoc->DeleteAreaTab( aRange,IDF_ALL );
             pUndoDoc->CopyToDocument( aRange, IDF_ALL, FALSE, pDoc );
-//			pDoc->TransferDrawPage( pUndoDoc, nTab, nTab );
             pDoc->SetLink( nTab, pUndoDoc->GetLinkMode(nTab), pUndoDoc->GetLinkDoc(nTab),
                                  pUndoDoc->GetLinkFlt(nTab),  pUndoDoc->GetLinkOpt(nTab),
                                  pUndoDoc->GetLinkTab(nTab),
@@ -1772,7 +1770,6 @@ void ScUndoRefreshLink::Redo()
 
             pDoc->DeleteAreaTab( aRange, IDF_ALL );
             pRedoDoc->CopyToDocument( aRange, IDF_ALL, FALSE, pDoc );
-//			pDoc->TransferDrawPage( pRedoDoc, nTab, nTab );
             pDoc->SetLink( nTab,
                            pRedoDoc->GetLinkMode(nTab),
                            pRedoDoc->GetLinkDoc(nTab),
diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx
index b2b7bf3..b0264e7 100644
--- a/sc/source/ui/undo/undodat.cxx
+++ b/sc/source/ui/undo/undodat.cxx
@@ -699,11 +699,6 @@ void ScUndoSubTotals::Undo()
     ScDocument* pDoc = pDocShell->GetDocument();
     ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
 
-    //	um einzelnen DB-Bereich anzupassen
-/*	ScDBData* pOldDBData = ScUndoUtil::GetOldDBData( pUndoDBData, pDoc, nTab,
-                                        aParam.nCol1, aParam.nRow1, aParam.nCol2, nNewEndRow );
-*/
-
     if (nNewEndRow > aParam.nRow2)
     {
         pDoc->DeleteRow( 0,nTab, MAXCOL,nTab, aParam.nRow2+1, static_cast<SCSIZE>(nNewEndRow-aParam.nRow2) );
@@ -752,9 +747,6 @@ void ScUndoSubTotals::Undo()
     ScUndoUtil::MarkSimpleBlock( pDocShell, aParam.nCol1,aParam.nRow1,nTab,
                                             aParam.nCol2,aParam.nRow2,nTab );
 
-/*	if (pUndoDBData)
-        *pOldDBData = *pUndoDBData;
-*/
     if (pUndoRange)
         pDoc->SetRangeName( new ScRangeName( *pUndoRange ) );
     if (pUndoDB)
@@ -896,10 +888,6 @@ void ScUndoSort::Redo()
     if ( nVisTab != nTab )
         pViewShell->SetTabNo( nTab );
 
-//	pViewShell->DoneBlockMode();
-//	pViewShell->InitOwnBlockMode();
-//	pViewShell->GetViewData()->GetMarkData() = aMarkData;	// CopyMarksTo
-
     pViewShell->MarkRange( ScRange( aSortParam.nCol1, aSortParam.nRow1, nTab,
                                       aSortParam.nCol2, aSortParam.nRow2, nTab ) );
 
@@ -935,7 +923,6 @@ ScUndoQuery::ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab, const ScQuery
     nTab( nNewTab ),
     aQueryParam( rParam ),
     pUndoDoc( pNewUndoDoc ),
-//	pUndoDBData( pNewData )
     pUndoDB( pNewUndoDB ),
     bIsAdvanced( FALSE ),
     bDestArea( FALSE ),
@@ -958,7 +945,6 @@ ScUndoQuery::ScUndoQuery( ScDocShell* pNewDocShell, SCTAB nNewTab, const ScQuery
 ScUndoQuery::~ScUndoQuery()
 {
     delete pUndoDoc;
-//	delete pUndoDBData;
     delete pUndoDB;
     DeleteSdrUndoAction( pDrawUndo );
 }
@@ -2139,9 +2125,6 @@ void ScUndoDataForm::DoChange( const BOOL bUndo )
 
     ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
 
-    // marking is in ScBlockUndo...
-    //ScUndoUtil::MarkSimpleBlock( pDocShell, aBlockRange );
-
     SCTAB nTabCount = pDoc->GetTableCount();
     if ( bUndo && !bRedoFilled )
     {
@@ -2172,8 +2155,6 @@ void ScUndoDataForm::DoChange( const BOOL bUndo )
         pDoc->SetString( aBlockRange.aStart.Col()+i , aBlockRange.aStart.Row() , aBlockRange.aStart.Tab() , aOldString );
     }
 
-    //ScRange aTabSelectRange = aBlockRange;
-
     if (pWorkRefData)
     {
         pWorkRefData->DoUndo( pDoc, TRUE );             // TRUE = bSetChartRangeLists for SetChartListenerCollection
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index 2c5aac9..8a253a1 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -376,8 +376,6 @@ void ScUndoDeleteTab::Undo()
         bDrawIsInUndo = FALSE;
         if (bOk)
         {
-            //	Ref-Undo passiert in EndUndo
-    //		pUndoDoc->UndoToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,FALSE, pDoc );
             pRefUndoDoc->CopyToDocument(0,0,nTab, MAXCOL,MAXROW,nTab, IDF_ALL,FALSE, pDoc );
 
             String aOldName;
@@ -408,9 +406,6 @@ void ScUndoDeleteTab::Undo()
 
             if ( pRefUndoDoc->IsTabProtected( nTab ) )
                 pDoc->SetTabProtection(nTab, pRefUndoDoc->GetTabProtection(nTab));
-
-            //	Drawing-Layer passiert beim MoveUndo::EndUndo
-    //		pDoc->TransferDrawPage(pRefUndoDoc, nTab,nTab);
         }
     }
     if (bLink)
@@ -439,8 +434,6 @@ void ScUndoDeleteTab::Undo()
     ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
     if (pViewShell)
         pViewShell->SetTabNo( lcl_GetVisibleTabBefore( *pDoc, theTabs[0] ), TRUE );
-
-//	EndUndo();
 }
 
 void ScUndoDeleteTab::Redo()
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx
index ffbf52e..8029e7b 100644
--- a/sc/source/ui/unoobj/appluno.cxx
+++ b/sc/source/ui/unoobj/appluno.cxx
@@ -941,8 +941,6 @@ uno::Sequence<beans::PropertyValue> SAL_CALL ScFunctionListObj::getById( sal_Int
     }
     else
         throw uno::RuntimeException();					// should not happen
-
-//    return uno::Sequence<beans::PropertyValue>(0);
 }
 
 // XNameAccess
@@ -973,8 +971,6 @@ uno::Any SAL_CALL ScFunctionListObj::getByName( const rtl::OUString& aName )
     }
     else
         throw uno::RuntimeException();					// should not happen
-
-//    return uno::Any();
 }
 
 // XIndexAccess
@@ -1012,8 +1008,6 @@ uno::Any SAL_CALL ScFunctionListObj::getByIndex( sal_Int32 nIndex )
     }
     else
         throw uno::RuntimeException();					// should not happen
-
-//    return uno::Any();
 }
 
 // XEnumerationAccess
diff --git a/sc/source/ui/unoobj/celllistsource.cxx b/sc/source/ui/unoobj/celllistsource.cxx
index cf02614..44faacc 100644
--- a/sc/source/ui/unoobj/celllistsource.cxx
+++ b/sc/source/ui/unoobj/celllistsource.cxx
@@ -131,7 +131,6 @@ namespace calc
         EventObject aDisposeEvent( *this );
         m_aListEntryListeners.disposeAndClear( aDisposeEvent );
 
-//        OCellListSource_Base::disposing();
         WeakAggComponentImplHelperBase::disposing();
 
         // TODO: clean up here whatever you need to clean up (e.g. revoking listeners etc.)
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index fc5ecda..1acf4b1 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -4350,9 +4350,6 @@ void SAL_CALL ScCellRangesObj::removeRangeAddresses( const uno::Sequence<table::
                                 throw(::com::sun::star::container::NoSuchElementException,
                                     ::com::sun::star::uno::RuntimeException)
 {
-    // with this implementation not needed
-//	SolarMutexGuard aGuard;
-
     // use sometimes a better/faster implementation
     sal_uInt32 nCount(rRangeSeq.getLength());
     if (nCount)
@@ -5718,7 +5715,6 @@ uno::Reference<sheet::XSheetFilterDescriptor> SAL_CALL ScCellRangeObj::createFil
         //!	Test, ob xObject im selben Dokument ist
 
         ScFilterDescriptor* pNew = new ScFilterDescriptor(pDocSh);	//! stattdessen vom Objekt?
-        //XSheetFilterDescriptorRef xNew = xObject->createFilterDescriptor(TRUE);
 
         ScQueryParam aParam = pNew->GetParam();
         aParam.bHasHeader = TRUE;
@@ -9706,7 +9702,6 @@ uno::Any SAL_CALL ScUniqueCellFormatsObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(uno::Reference<sheet::XSheetCellRangeContainer>(new ScCellRangesObj(pDocShell, aRangeLists[nIndex])));
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScUniqueCellFormatsObj::getElementType() throw(uno::RuntimeException)
diff --git a/sc/source/ui/unoobj/cellvaluebinding.cxx b/sc/source/ui/unoobj/cellvaluebinding.cxx
index bc1cb74..e12baee 100644
--- a/sc/source/ui/unoobj/cellvaluebinding.cxx
+++ b/sc/source/ui/unoobj/cellvaluebinding.cxx
@@ -136,7 +136,6 @@ namespace calc
             xBroadcaster->removeModifyListener( this );
         }
 
-//        OCellValueBinding_Base::disposing();
         WeakAggComponentImplHelperBase::disposing();
 
         // TODO: clean up here whatever you need to clean up (e.g. deregister as XEventListener
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 1ba53a9..573e8ce 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -3387,7 +3387,6 @@ void SAL_CALL ScChart2DataSequence::addPropertyChangeListener(
                     lang::WrappedTargetException, uno::RuntimeException)
 {
     // FIXME: real implementation
-//     throw uno::RuntimeException();
     OSL_ENSURE( false, "Not yet implemented" );
 }
 
@@ -3399,7 +3398,6 @@ void SAL_CALL ScChart2DataSequence::removePropertyChangeListener(
                     lang::WrappedTargetException, uno::RuntimeException)
 {
     // FIXME: real implementation
-//     throw uno::RuntimeException();
     OSL_ENSURE( false, "Not yet implemented" );
 }
 
@@ -3411,7 +3409,6 @@ void SAL_CALL ScChart2DataSequence::addVetoableChangeListener(
                     lang::WrappedTargetException, uno::RuntimeException)
 {
     // FIXME: real implementation
-//     throw uno::RuntimeException();
     OSL_ENSURE( false, "Not yet implemented" );
 }
 
@@ -3423,7 +3420,6 @@ void SAL_CALL ScChart2DataSequence::removeVetoableChangeListener(
                     lang::WrappedTargetException, uno::RuntimeException)
 {
     // FIXME: real implementation
-//     throw uno::RuntimeException();
     OSL_ENSURE( false, "Not yet implemented" );
 }
 
@@ -3665,7 +3661,6 @@ void SAL_CALL ScChart2EmptyDataSequence::addPropertyChangeListener(
                     lang::WrappedTargetException, uno::RuntimeException)
 {
     // FIXME: real implementation
-//     throw uno::RuntimeException();
     OSL_ENSURE( false, "Not yet implemented" );
 }
 
@@ -3677,7 +3672,6 @@ void SAL_CALL ScChart2EmptyDataSequence::removePropertyChangeListener(
                     lang::WrappedTargetException, uno::RuntimeException)
 {
     // FIXME: real implementation
-//     throw uno::RuntimeException();
     OSL_ENSURE( false, "Not yet implemented" );
 }
 
@@ -3689,7 +3683,6 @@ void SAL_CALL ScChart2EmptyDataSequence::addVetoableChangeListener(
                     lang::WrappedTargetException, uno::RuntimeException)
 {
     // FIXME: real implementation
-//     throw uno::RuntimeException();
     OSL_ENSURE( false, "Not yet implemented" );
 }
 
@@ -3701,7 +3694,6 @@ void SAL_CALL ScChart2EmptyDataSequence::removeVetoableChangeListener(
                     lang::WrappedTargetException, uno::RuntimeException)
 {
     // FIXME: real implementation
-//     throw uno::RuntimeException();
     OSL_ENSURE( false, "Not yet implemented" );
 }
 
diff --git a/sc/source/ui/unoobj/chartuno.cxx b/sc/source/ui/unoobj/chartuno.cxx
index d5cf9b4..cb08e77 100644
--- a/sc/source/ui/unoobj/chartuno.cxx
+++ b/sc/source/ui/unoobj/chartuno.cxx
@@ -299,10 +299,6 @@ void SAL_CALL ScChartsObj::addNewByName( const rtl::OUString& aName,
 
             pPage->InsertObject( pObj );
             pModel->AddUndo( new SdrUndoInsertObj( *pObj ) );		//! Undo-Kommentar?
-
-            // Dies veranlaesst Chart zum sofortigen Update
-            //SvData aEmpty;
-            //aIPObj->SendDataChanged( aEmpty );
     }
 }
 
@@ -374,7 +370,6 @@ uno::Any SAL_CALL ScChartsObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xChart);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScChartsObj::getElementType() throw(uno::RuntimeException)
@@ -399,7 +394,6 @@ uno::Any SAL_CALL ScChartsObj::getByName( const rtl::OUString& aName )
         return uno::makeAny(xChart);
     else
         throw container::NoSuchElementException();
-//    return uno::Any();
 }
 
 uno::Sequence<rtl::OUString> SAL_CALL ScChartsObj::getElementNames() throw(uno::RuntimeException)
@@ -600,8 +594,6 @@ void ScChartObj::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const uno:
             }
             break;
         default:
-            {
-            }
             break;
     }
 }
@@ -645,8 +637,6 @@ void ScChartObj::getFastPropertyValue( uno::Any& rValue, sal_Int32 nHandle ) con
             }
             break;
         default:
-            {
-            }
             break;
     }
 }
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx
index 20fa0b5..2e466a1 100644
--- a/sc/source/ui/unoobj/dapiuno.cxx
+++ b/sc/source/ui/unoobj/dapiuno.cxx
@@ -1069,7 +1069,7 @@ Reference< XDataPilotField > SAL_CALL ScDataPilotDescriptorBase::getDataLayoutFi
     {
         if( ScDPSaveData* pSaveData = pDPObject->GetSaveData() )
         {
-            if( /*ScDPSaveDimension* pDataDim =*/ pSaveData->GetDataLayoutDimension() )
+            if( pSaveData->GetDataLayoutDimension() )
             {
                 ScFieldIdentifier aFieldId( OUString( RTL_CONSTASCII_USTRINGPARAM( SC_DATALAYOUT_NAME ) ), 0, true );
                 return new ScDataPilotFieldObj( *this, aFieldId );
diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx
index 5e8c6ca..5f15c24 100644
--- a/sc/source/ui/unoobj/datauno.cxx
+++ b/sc/source/ui/unoobj/datauno.cxx
@@ -724,7 +724,6 @@ uno::Any SAL_CALL ScSubTotalDescriptorBase::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xField);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScSubTotalDescriptorBase::getElementType() throw(uno::RuntimeException)
@@ -2273,7 +2272,6 @@ uno::Any SAL_CALL ScDatabaseRangesObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xRange);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScDatabaseRangesObj::getElementType() throw(uno::RuntimeException)
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index a6f0978..6de6f5d 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -2348,7 +2348,6 @@ uno::Any SAL_CALL ScDrawPagesObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xPage);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScDrawPagesObj::getElementType() throw(uno::RuntimeException)
@@ -2712,7 +2711,6 @@ uno::Any SAL_CALL ScTableSheetsObj::getByName( const rtl::OUString& aName )
         return uno::makeAny(xSheet);
     else
         throw container::NoSuchElementException();
-//    return uno::Any();
 }
 
 uno::Sequence<rtl::OUString> SAL_CALL ScTableSheetsObj::getElementNames()
@@ -2770,8 +2768,6 @@ void ScTableColumnsObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
 {
     if ( rHint.ISA( ScUpdateRefHint ) )
     {
-//        const ScUpdateRefHint& rRef = (const ScUpdateRefHint&)rHint;
-
         //!	Referenz-Update fuer Tab und Start/Ende
     }
     else if ( rHint.ISA( SfxSimpleHint ) &&
@@ -2864,7 +2860,6 @@ uno::Any SAL_CALL ScTableColumnsObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xColumn);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScTableColumnsObj::getElementType() throw(uno::RuntimeException)
@@ -2889,7 +2884,6 @@ uno::Any SAL_CALL ScTableColumnsObj::getByName( const rtl::OUString& aName )
         return uno::makeAny(xColumn);
     else
         throw container::NoSuchElementException();
-//    return uno::Any();
 }
 
 uno::Sequence<rtl::OUString> SAL_CALL ScTableColumnsObj::getElementNames()
@@ -3046,8 +3040,6 @@ void ScTableRowsObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
 {
     if ( rHint.ISA( ScUpdateRefHint ) )
     {
-//        const ScUpdateRefHint& rRef = (const ScUpdateRefHint&)rHint;
-
         //!	Referenz-Update fuer Tab und Start/Ende
     }
     else if ( rHint.ISA( SfxSimpleHint ) &&
@@ -3129,7 +3121,6 @@ uno::Any SAL_CALL ScTableRowsObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xRow);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScTableRowsObj::getElementType() throw(uno::RuntimeException)
@@ -3480,7 +3471,6 @@ uno::Any SAL_CALL ScAnnotationsObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xAnnotation);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScAnnotationsObj::getElementType() throw(uno::RuntimeException)
@@ -3514,8 +3504,6 @@ void ScScenariosObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
 {
     if ( rHint.ISA( ScUpdateRefHint ) )
     {
-//        const ScUpdateRefHint& rRef = (const ScUpdateRefHint&)rHint;
-
         //!	Referenz-Update fuer Tab und Start/Ende
     }
     else if ( rHint.ISA( SfxSimpleHint ) &&
@@ -3657,7 +3645,6 @@ uno::Any SAL_CALL ScScenariosObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xScen);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScScenariosObj::getElementType() throw(uno::RuntimeException)
@@ -3682,7 +3669,6 @@ uno::Any SAL_CALL ScScenariosObj::getByName( const rtl::OUString& aName )
         return uno::makeAny(xScen);
     else
         throw container::NoSuchElementException();
-//    return uno::Any();
 }
 
 uno::Sequence<rtl::OUString> SAL_CALL ScScenariosObj::getElementNames()
diff --git a/sc/source/ui/unoobj/editsrc.cxx b/sc/source/ui/unoobj/editsrc.cxx
index d31b41a..9993419 100644
--- a/sc/source/ui/unoobj/editsrc.cxx
+++ b/sc/source/ui/unoobj/editsrc.cxx
@@ -283,8 +283,6 @@ void ScAnnotationEditSource::Notify( SfxBroadcaster&, const SfxHint& rHint )
 {
     if ( rHint.ISA( ScUpdateRefHint ) )
     {
-//        const ScUpdateRefHint& rRef = (const ScUpdateRefHint&)rHint;
-
         //!	Ref-Update
     }
     else if ( rHint.ISA( SfxSimpleHint ) )
diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx
index a65a953..894880d 100644
--- a/sc/source/ui/unoobj/fielduno.cxx
+++ b/sc/source/ui/unoobj/fielduno.cxx
@@ -277,8 +277,6 @@ void ScCellFieldsObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
 {
     if ( rHint.ISA( ScUpdateRefHint ) )
     {
-//        const ScUpdateRefHint& rRef = (const ScUpdateRefHint&)rHint;
-
         //!	Ref-Update
     }
     else if ( rHint.ISA( SfxSimpleHint ) &&
@@ -329,7 +327,6 @@ uno::Any SAL_CALL ScCellFieldsObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xField);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScCellFieldsObj::getElementType() throw(uno::RuntimeException)
@@ -395,7 +392,6 @@ void SAL_CALL ScCellFieldsObj::refresh(  )
                     }
                     catch(uno::RuntimeException&)
                     {
-//						DBG_ERROR("a object is gone without to remove from Broadcaster");
                         ++pInterfaces;
                         ++i;
                     }
@@ -542,8 +538,6 @@ void ScCellFieldObj::Notify( SfxBroadcaster&, const SfxHint& rHint )
 
     if ( rHint.ISA( ScUpdateRefHint ) )
     {
-//        const ScUpdateRefHint& rRef = (const ScUpdateRefHint&)rHint;
-
         //!	Ref-Update
     }
     else if ( rHint.ISA( SfxSimpleHint ) &&
@@ -574,7 +568,6 @@ void ScCellFieldObj::DeleteField()
     if (pEditSource)
     {
         SvxTextForwarder* pForwarder = pEditSource->GetTextForwarder();
-//		pEditEngine->QuickDelete( aSelection );
         pForwarder->QuickInsertText( String(), aSelection );
         pEditSource->UpdateData();
 
@@ -976,7 +969,6 @@ uno::Any SAL_CALL ScHeaderFieldsObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xField);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScHeaderFieldsObj::getElementType() throw(uno::RuntimeException)
@@ -1042,7 +1034,6 @@ void SAL_CALL ScHeaderFieldsObj::refresh(  )
                     }
                     catch(uno::RuntimeException&)
                     {
-//						DBG_ERROR("a object is gone without to remove from Broadcaster");
                         ++pInterfaces;
                         ++i;
                     }
@@ -1084,7 +1075,6 @@ SvxFileFormat lcl_UnoToSvxFileFormat( sal_Int16 nUnoValue )
         case text::FilenameDisplayFormat::FULL:	return SVXFILEFORMAT_FULLPATH;
         case text::FilenameDisplayFormat::PATH:	return SVXFILEFORMAT_PATH;
         case text::FilenameDisplayFormat::NAME:	return SVXFILEFORMAT_NAME;
-//		case text::FilenameDisplayFormat::NAME_AND_EXT:
         default:
             return SVXFILEFORMAT_NAME_EXT;
     }
@@ -1097,7 +1087,6 @@ sal_Int16 lcl_SvxToUnoFileFormat( SvxFileFormat nSvxValue )
         case SVXFILEFORMAT_NAME_EXT:	return text::FilenameDisplayFormat::NAME_AND_EXT;
         case SVXFILEFORMAT_FULLPATH:	return text::FilenameDisplayFormat::FULL;
         case SVXFILEFORMAT_PATH:		return text::FilenameDisplayFormat::PATH;
-//		case SVXFILEFORMAT_NAME:
         default:
             return text::FilenameDisplayFormat::NAME;
     }
@@ -1264,7 +1253,6 @@ void ScHeaderFieldObj::DeleteField()
     if (pEditSource)
     {
         SvxTextForwarder* pForwarder = pEditSource->GetTextForwarder();
-//		pEditEngine->QuickDelete( aSelection );
         pForwarder->QuickInsertText( String(), aSelection );
         pEditSource->UpdateData();
 
diff --git a/sc/source/ui/unoobj/fmtuno.cxx b/sc/source/ui/unoobj/fmtuno.cxx
index 67bd1ee..3250d67 100644
--- a/sc/source/ui/unoobj/fmtuno.cxx
+++ b/sc/source/ui/unoobj/fmtuno.cxx
@@ -444,7 +444,6 @@ uno::Any SAL_CALL ScTableConditionalFormat::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xEntry);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScTableConditionalFormat::getElementType() throw(uno::RuntimeException)
@@ -488,7 +487,6 @@ uno::Any SAL_CALL ScTableConditionalFormat::getByName( const rtl::OUString& aNam
         return uno::makeAny(xEntry);
     else
         throw container::NoSuchElementException();
-//    return uno::Any();
 }
 
 uno::Sequence<rtl::OUString> SAL_CALL ScTableConditionalFormat::getElementNames()
diff --git a/sc/source/ui/unoobj/linkuno.cxx b/sc/source/ui/unoobj/linkuno.cxx
index a90817e..e40de0a 100644
--- a/sc/source/ui/unoobj/linkuno.cxx
+++ b/sc/source/ui/unoobj/linkuno.cxx
@@ -511,7 +511,6 @@ uno::Any SAL_CALL ScSheetLinksObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xLink);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScSheetLinksObj::getElementType() throw(uno::RuntimeException)
@@ -1046,7 +1045,6 @@ uno::Any SAL_CALL ScAreaLinksObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xLink);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScAreaLinksObj::getElementType() throw(uno::RuntimeException)
@@ -1364,7 +1362,6 @@ uno::Any SAL_CALL ScDDELinksObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xLink);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScDDELinksObj::getElementType() throw(uno::RuntimeException)
@@ -1389,7 +1386,6 @@ uno::Any SAL_CALL ScDDELinksObj::getByName( const rtl::OUString& aName )
         return uno::makeAny(xLink);
     else
         throw container::NoSuchElementException();
-//    return uno::Any();
 }
 
 uno::Sequence<rtl::OUString> SAL_CALL ScDDELinksObj::getElementNames() throw(uno::RuntimeException)
diff --git a/sc/source/ui/unoobj/miscuno.cxx b/sc/source/ui/unoobj/miscuno.cxx
index 229f66b..0947182 100644
--- a/sc/source/ui/unoobj/miscuno.cxx
+++ b/sc/source/ui/unoobj/miscuno.cxx
@@ -293,7 +293,6 @@ sal_Int32 SAL_CALL ScNameToIndexAccess::getCount(  ) throw(::com::sun::star::uno
         return xNameAccess->getByName( aNames.getConstArray()[nIndex] );
 
     throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 // XElementAccess
diff --git a/sc/source/ui/unoobj/nameuno.cxx b/sc/source/ui/unoobj/nameuno.cxx
index cce0555..0ba24c7 100644
--- a/sc/source/ui/unoobj/nameuno.cxx
+++ b/sc/source/ui/unoobj/nameuno.cxx
@@ -701,7 +701,6 @@ uno::Any SAL_CALL ScNamedRangesObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xRange);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScNamedRangesObj::getElementType() throw(uno::RuntimeException)
@@ -761,7 +760,6 @@ uno::Any SAL_CALL ScNamedRangesObj::getByName( const rtl::OUString& aName )
         return uno::makeAny(xRange);
     else
         throw container::NoSuchElementException();
-//    return uno::Any();
 }
 
 uno::Sequence<rtl::OUString> SAL_CALL ScNamedRangesObj::getElementNames()
@@ -785,7 +783,6 @@ uno::Sequence<rtl::OUString> SAL_CALL ScNamedRangesObj::getElementNames()
                 if ( lcl_UserVisibleName(pData) )
                     pAry[nVisPos++] = pData->GetName();
             }
-//			DBG_ASSERT(nVisPos == nVisCount, "huch, verzaehlt?");
             return aSeq;
         }
     }
@@ -1161,7 +1158,6 @@ uno::Any SAL_CALL ScLabelRangesObj::getByIndex( sal_Int32 nIndex )
         return uno::makeAny(xRange);
     else
         throw lang::IndexOutOfBoundsException();
-//    return uno::Any();
 }
 
 uno::Type SAL_CALL ScLabelRangesObj::getElementType() throw(uno::RuntimeException)


More information about the Libreoffice-commits mailing list