summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-03-02 03:14:31 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-03-02 03:14:31 +0900
commit117066d1e904f58e37d1e48a30b997b98b9df8e9 (patch)
tree1f3b6ae26e61d18b1942b1a4c99f50ad2e1547c2 /sc
parent493c81d73ab2cfded2eafa15fbb9d08065c46470 (diff)
Removed dead code
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/navipi/content.cxx15
-rw-r--r--sc/source/ui/navipi/navcitem.cxx4
-rw-r--r--sc/source/ui/undo/undoblk3.cxx3
-rw-r--r--sc/source/ui/undo/undodat.cxx19
-rw-r--r--sc/source/ui/undo/undotab.cxx7
-rw-r--r--sc/source/ui/unoobj/appluno.cxx6
-rw-r--r--sc/source/ui/unoobj/celllistsource.cxx1
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx5
-rw-r--r--sc/source/ui/unoobj/cellvaluebinding.cxx1
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx8
-rw-r--r--sc/source/ui/unoobj/chartuno.cxx10
-rw-r--r--sc/source/ui/unoobj/dapiuno.cxx2
-rw-r--r--sc/source/ui/unoobj/datauno.cxx2
-rw-r--r--sc/source/ui/unoobj/docuno.cxx14
-rw-r--r--sc/source/ui/unoobj/editsrc.cxx2
-rw-r--r--sc/source/ui/unoobj/fielduno.cxx12
-rw-r--r--sc/source/ui/unoobj/fmtuno.cxx2
-rw-r--r--sc/source/ui/unoobj/linkuno.cxx4
-rw-r--r--sc/source/ui/unoobj/miscuno.cxx1
-rw-r--r--sc/source/ui/unoobj/nameuno.cxx4
20 files changed, 1 insertions, 121 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index ebc88115f8e0..6f927d34776f 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/Li
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 c5cf72b51be0..83fe56cbedbe 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 98e54efc7dfd..863bb7081fba 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 6d52fab5aab9..79b0e473f781 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 1b9e7fd7af12..a5bf87c9a381 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 55883b5ed5f7..76c894fae0ae 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 91b2aa50e07a..671812caaa1a 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 bba13a2c5f6a..802c0b6d6872 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 4b1922560926..18c33b49d632 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 6e14d4c2eb4f..8d7f6e2e755d 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 0b0b500402c5..4030327b9c8f 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 ba1fedd5198c..229eef11b953 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 6492df2d2610..ebbec5edc344 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 fe4ed654464b..d251307ebc56 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 5e891ea37174..f9cc38e1e747 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 5cbabe2d2679..915fb82d0b07 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 eeb4c2d71a2b..0c745a1f1b8a 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 4a06fec9725b..caf8b4ede3ab 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 cef54bb1a3ed..8a65a908979f 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 21b2db9ccff8..827ab7633e18 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)