Kaydet (Commit) 8083f6b7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unused function params

Change-Id: I1b72a95b7367bb555d37a9a073ca4da2b01cf53f
üst dd0ceb50
...@@ -110,11 +110,8 @@ namespace svt { namespace table ...@@ -110,11 +110,8 @@ namespace svt { namespace table
/** notifies the listener that one or more columns have been removed from /** notifies the listener that one or more columns have been removed from
the table 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 /** notifies the listener that all columns have been removed form the model
*/ */
...@@ -127,7 +124,7 @@ namespace svt { namespace table ...@@ -127,7 +124,7 @@ namespace svt { namespace table
they have about the cells in question, in particular any possibly they have about the cells in question, in particular any possibly
cached cell values. 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 /** notifies the listener that attributes of a given column changed
......
...@@ -163,10 +163,8 @@ namespace svt { namespace table ...@@ -163,10 +163,8 @@ namespace svt { namespace table
//= RowSelection //= 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; return SkipFunction;
} }
...@@ -217,10 +215,8 @@ namespace svt { namespace table ...@@ -217,10 +215,8 @@ namespace svt { namespace table
//= ColumnSortHandler //= 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; return SkipFunction;
} }
......
...@@ -434,7 +434,7 @@ namespace svt { namespace table ...@@ -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(); m_nColumnCount = m_pModel->getColumnCount();
...@@ -450,8 +450,6 @@ namespace svt { namespace table ...@@ -450,8 +450,6 @@ namespace svt { namespace table
impl_ni_relayout(); impl_ni_relayout();
m_rAntiImpl.Invalidate(); m_rAntiImpl.Invalidate();
OSL_UNUSED( i_colIndex );
} }
...@@ -464,12 +462,9 @@ namespace svt { namespace table ...@@ -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 ); invalidateRowRange( i_firstRow, i_lastRow );
OSL_UNUSED( i_firstCol );
OSL_UNUSED( i_lastCol );
} }
......
...@@ -299,9 +299,9 @@ namespace svt { namespace table ...@@ -299,9 +299,9 @@ namespace svt { namespace table
virtual void rowsInserted( RowPos first, RowPos last ) SAL_OVERRIDE; virtual void rowsInserted( RowPos first, RowPos last ) SAL_OVERRIDE;
virtual void rowsRemoved( RowPos first, RowPos last ) SAL_OVERRIDE; virtual void rowsRemoved( RowPos first, RowPos last ) SAL_OVERRIDE;
virtual void columnInserted() 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 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 columnChanged( ColPos const i_column, ColumnAttributeGroup const i_attributeGroup ) SAL_OVERRIDE;
virtual void tableMetricsChanged() SAL_OVERRIDE; virtual void tableMetricsChanged() SAL_OVERRIDE;
......
...@@ -261,7 +261,7 @@ namespace svt { namespace table ...@@ -261,7 +261,7 @@ namespace svt { namespace table
++loop ++loop
) )
{ {
(*loop)->columnRemoved( i_position ); (*loop)->columnRemoved();
} }
// dispose the column // dispose the column
...@@ -896,8 +896,6 @@ namespace svt { namespace table ...@@ -896,8 +896,6 @@ namespace svt { namespace table
void UnoControlTableModel::notifyDataChanged( ::com::sun::star::awt::grid::GridDataEvent const & i_event ) const 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 firstRow = i_event.FirstRow == -1 ? 0 : i_event.FirstRow;
RowPos const lastRow = i_event.FirstRow == -1 ? getRowCount() - 1 : i_event.LastRow; RowPos const lastRow = i_event.FirstRow == -1 ? getRowCount() - 1 : i_event.LastRow;
...@@ -907,7 +905,7 @@ namespace svt { namespace table ...@@ -907,7 +905,7 @@ namespace svt { namespace table
++loop ++loop
) )
{ {
(*loop)->cellsUpdated( firstCol, lastCol, firstRow, lastRow ); (*loop)->cellsUpdated( firstRow, lastRow );
} }
} }
...@@ -920,7 +918,7 @@ namespace svt { namespace table ...@@ -920,7 +918,7 @@ namespace svt { namespace table
++loop ++loop
) )
{ {
(*loop)->cellsUpdated( 0, getColumnCount() - 1, 0, getRowCount() - 1 ); (*loop)->cellsUpdated( 0, getRowCount() - 1 );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment