diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-08 18:09:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-09 07:54:03 +0200 |
commit | 8083f6b7ed7ec3e72c896e3707c21457dbe173e3 (patch) | |
tree | 5975975aa17d6afaa26457d13528a26517f48fea | |
parent | dd0ceb50c2d95ac0587db2c983ac58f2e3b13028 (diff) |
Remove unused function params
Change-Id: I1b72a95b7367bb555d37a9a073ca4da2b01cf53f
-rw-r--r-- | include/svtools/table/tablemodel.hxx | 7 | ||||
-rw-r--r-- | svtools/source/table/mousefunction.cxx | 8 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 9 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.hxx | 4 | ||||
-rw-r--r-- | svtools/source/uno/unocontroltablemodel.cxx | 8 |
5 files changed, 11 insertions, 25 deletions
diff --git a/include/svtools/table/tablemodel.hxx b/include/svtools/table/tablemodel.hxx index 9c07ef276168..7bb3d9c1f8a6 100644 --- a/include/svtools/table/tablemodel.hxx +++ b/include/svtools/table/tablemodel.hxx @@ -110,11 +110,8 @@ namespace svt { namespace table /** notifies the listener that one or more columns have been removed from the table - - @param i_colIndex - the old index of the removed column */ - virtual void columnRemoved( ColPos const i_colIndex ) = 0; + virtual void columnRemoved() = 0; /** notifies the listener that all columns have been removed form the model */ @@ -127,7 +124,7 @@ namespace svt { namespace table they have about the cells in question, in particular any possibly cached cell values. */ - virtual void cellsUpdated( ColPos const i_firstCol, ColPos i_lastCol, RowPos const i_firstRow, RowPos const i_lastRow ) = 0; + virtual void cellsUpdated( RowPos const i_firstRow, RowPos const i_lastRow ) = 0; /** notifies the listener that attributes of a given column changed 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 ); } } |