From 8083f6b7ed7ec3e72c896e3707c21457dbe173e3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 8 Sep 2015 18:09:08 +0200 Subject: Remove unused function params Change-Id: I1b72a95b7367bb555d37a9a073ca4da2b01cf53f --- svtools/source/table/mousefunction.cxx | 8 ++------ svtools/source/table/tablecontrol_impl.cxx | 9 ++------- svtools/source/table/tablecontrol_impl.hxx | 4 ++-- svtools/source/uno/unocontroltablemodel.cxx | 8 +++----- 4 files changed, 9 insertions(+), 20 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/table/mousefunction.cxx b/svtools/source/table/mousefunction.cxx index 2dfbdca42554..015f7f938627 100644 --- a/svtools/source/table/mousefunction.cxx +++ b/svtools/source/table/mousefunction.cxx @@ -163,10 +163,8 @@ namespace svt { namespace table //= RowSelection - FunctionResult RowSelection::handleMouseMove( ITableControl& i_tableControl, MouseEvent const & i_event ) + FunctionResult RowSelection::handleMouseMove( ITableControl&, MouseEvent const & ) { - OSL_UNUSED( i_tableControl ); - OSL_UNUSED( i_event ); return SkipFunction; } @@ -217,10 +215,8 @@ namespace svt { namespace table //= ColumnSortHandler - FunctionResult ColumnSortHandler::handleMouseMove( ITableControl& i_tableControl, MouseEvent const & i_event ) + FunctionResult ColumnSortHandler::handleMouseMove( ITableControl&, MouseEvent const & ) { - OSL_UNUSED( i_tableControl ); - OSL_UNUSED( i_event ); return SkipFunction; } diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index d99e88e7a8ac..74234c5279f9 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -434,7 +434,7 @@ namespace svt { namespace table } - void TableControl_Impl::columnRemoved( ColPos const i_colIndex ) + void TableControl_Impl::columnRemoved() { m_nColumnCount = m_pModel->getColumnCount(); @@ -450,8 +450,6 @@ namespace svt { namespace table impl_ni_relayout(); m_rAntiImpl.Invalidate(); - - OSL_UNUSED( i_colIndex ); } @@ -464,12 +462,9 @@ namespace svt { namespace table } - void TableControl_Impl::cellsUpdated( ColPos const i_firstCol, ColPos i_lastCol, RowPos const i_firstRow, RowPos const i_lastRow ) + void TableControl_Impl::cellsUpdated( RowPos const i_firstRow, RowPos const i_lastRow ) { invalidateRowRange( i_firstRow, i_lastRow ); - - OSL_UNUSED( i_firstCol ); - OSL_UNUSED( i_lastCol ); } diff --git a/svtools/source/table/tablecontrol_impl.hxx b/svtools/source/table/tablecontrol_impl.hxx index 25084ab5adc7..6a4e1227c6c4 100644 --- a/svtools/source/table/tablecontrol_impl.hxx +++ b/svtools/source/table/tablecontrol_impl.hxx @@ -299,9 +299,9 @@ namespace svt { namespace table virtual void rowsInserted( RowPos first, RowPos last ) SAL_OVERRIDE; virtual void rowsRemoved( RowPos first, RowPos last ) SAL_OVERRIDE; virtual void columnInserted() SAL_OVERRIDE; - virtual void columnRemoved( ColPos const i_colIndex ) SAL_OVERRIDE; + virtual void columnRemoved() SAL_OVERRIDE; virtual void allColumnsRemoved() SAL_OVERRIDE; - virtual void cellsUpdated( ColPos const i_firstCol, ColPos i_lastCol, RowPos const i_firstRow, RowPos const i_lastRow ) SAL_OVERRIDE; + virtual void cellsUpdated( RowPos const i_firstRow, RowPos const i_lastRow ) SAL_OVERRIDE; virtual void columnChanged( ColPos const i_column, ColumnAttributeGroup const i_attributeGroup ) SAL_OVERRIDE; virtual void tableMetricsChanged() SAL_OVERRIDE; diff --git a/svtools/source/uno/unocontroltablemodel.cxx b/svtools/source/uno/unocontroltablemodel.cxx index 714093305dda..59e22fbb9a3b 100644 --- a/svtools/source/uno/unocontroltablemodel.cxx +++ b/svtools/source/uno/unocontroltablemodel.cxx @@ -261,7 +261,7 @@ namespace svt { namespace table ++loop ) { - (*loop)->columnRemoved( i_position ); + (*loop)->columnRemoved(); } // dispose the column @@ -896,8 +896,6 @@ namespace svt { namespace table void UnoControlTableModel::notifyDataChanged( ::com::sun::star::awt::grid::GridDataEvent const & i_event ) const { - ColPos const firstCol = i_event.FirstColumn == -1 ? 0 : i_event.FirstColumn; - ColPos const lastCol = i_event.FirstColumn == -1 ? getColumnCount() - 1 : i_event.LastColumn; RowPos const firstRow = i_event.FirstRow == -1 ? 0 : i_event.FirstRow; RowPos const lastRow = i_event.FirstRow == -1 ? getRowCount() - 1 : i_event.LastRow; @@ -907,7 +905,7 @@ namespace svt { namespace table ++loop ) { - (*loop)->cellsUpdated( firstCol, lastCol, firstRow, lastRow ); + (*loop)->cellsUpdated( firstRow, lastRow ); } } @@ -920,7 +918,7 @@ namespace svt { namespace table ++loop ) { - (*loop)->cellsUpdated( 0, getColumnCount() - 1, 0, getRowCount() - 1 ); + (*loop)->cellsUpdated( 0, getRowCount() - 1 ); } } -- cgit