diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-08 16:32:18 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-08 16:32:18 +0200 |
commit | f19049065aa3e187377ab73cc70b6faa7803102a (patch) | |
tree | aeb6ececf362b377b06df0bdfec3ca0129fca707 /svtools | |
parent | bd53697bab53d46df952eeb23b609c59adc330cc (diff) |
Remove unused function params
Change-Id: I0db4352ab7a14b4a62bebb650d1956c4a177b67f
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/table/gridtablerenderer.hxx | 3 | ||||
-rw-r--r-- | svtools/source/table/gridtablerenderer.cxx | 12 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 2 | ||||
-rw-r--r-- | svtools/source/table/tabledatawindow.cxx | 7 |
4 files changed, 6 insertions, 18 deletions
diff --git a/svtools/inc/table/gridtablerenderer.hxx b/svtools/inc/table/gridtablerenderer.hxx index 4df38f8eeaf5..e3f14cd341da 100644 --- a/svtools/inc/table/gridtablerenderer.hxx +++ b/svtools/inc/table/gridtablerenderer.hxx @@ -87,13 +87,10 @@ namespace svt { namespace table virtual void HideCellCursor( vcl::Window& _rView, const Rectangle& _rCursorRect) SAL_OVERRIDE; virtual bool FitsIntoCell( ::com::sun::star::uno::Any const & i_cellContent, - ColPos const i_colPos, RowPos const i_rowPos, - bool const i_active, bool const i_selected, OutputDevice& i_targetDevice, Rectangle const & i_targetArea ) const SAL_OVERRIDE; virtual bool GetFormattedCellString( ::com::sun::star::uno::Any const & i_cellValue, - ColPos const i_colPos, RowPos const i_rowPos, OUString & o_cellString ) const SAL_OVERRIDE; diff --git a/svtools/source/table/gridtablerenderer.cxx b/svtools/source/table/gridtablerenderer.cxx index 0074590ebb88..a7cce61b38d1 100644 --- a/svtools/source/table/gridtablerenderer.cxx +++ b/svtools/source/table/gridtablerenderer.cxx @@ -558,8 +558,8 @@ namespace svt { namespace table } - bool GridTableRenderer::FitsIntoCell( Any const & i_cellContent, ColPos const i_colPos, RowPos const i_rowPos, - bool const i_active, bool const i_selected, OutputDevice& i_targetDevice, Rectangle const & i_targetArea ) const + bool GridTableRenderer::FitsIntoCell( Any const & i_cellContent, + OutputDevice& i_targetDevice, Rectangle const & i_targetArea ) const { if ( !i_cellContent.hasValue() ) return true; @@ -593,20 +593,14 @@ namespace svt { namespace table if ( nTextWidth > aTargetArea.GetWidth() ) return false; - OSL_UNUSED( i_active ); - OSL_UNUSED( i_selected ); - OSL_UNUSED( i_rowPos ); - OSL_UNUSED( i_colPos ); return true; } - bool GridTableRenderer::GetFormattedCellString( Any const & i_cellValue, ColPos const i_colPos, RowPos const i_rowPos, OUString & o_cellString ) const + bool GridTableRenderer::GetFormattedCellString( Any const & i_cellValue, OUString & o_cellString ) const { o_cellString = m_pImpl->aStringConverter.convertToString( i_cellValue ); - OSL_UNUSED( i_colPos ); - OSL_UNUSED( i_rowPos ); return true; } diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index 94215e202a7b..7100781f7912 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -2041,7 +2041,7 @@ namespace svt { namespace table m_pModel->getCellContent( i_col, i_row, aCellValue ); OUString sCellStringContent; - m_pModel->getRenderer()->GetFormattedCellString( aCellValue, i_col, i_row, sCellStringContent ); + m_pModel->getRenderer()->GetFormattedCellString( aCellValue, sCellStringContent ); return sCellStringContent; } diff --git a/svtools/source/table/tabledatawindow.cxx b/svtools/source/table/tabledatawindow.cxx index 044f84642a35..49fc1605e6a8 100644 --- a/svtools/source/table/tabledatawindow.cxx +++ b/svtools/source/table/tabledatawindow.cxx @@ -97,19 +97,16 @@ namespace svt { namespace table pTableModel->getCellContent( hitCol, hitRow, aCellToolTip ); // use the cell content as tool tip only if it doesn't fit into the cell. - bool const activeCell = ( hitRow == m_rTableControl.getCurrentRow() ) && ( hitCol == m_rTableControl.getCurrentColumn() ); - bool const selectedCell = m_rTableControl.isRowSelected( hitRow ); - Rectangle const aWindowRect( Point( 0, 0 ), GetOutputSizePixel() ); TableCellGeometry const aCell( m_rTableControl, aWindowRect, hitCol, hitRow ); Rectangle const aCellRect( aCell.getRect() ); PTableRenderer const pRenderer = pTableModel->getRenderer(); - if ( pRenderer->FitsIntoCell( aCellToolTip, hitCol, hitRow, activeCell, selectedCell, *this, aCellRect ) ) + if ( pRenderer->FitsIntoCell( aCellToolTip, *this, aCellRect ) ) aCellToolTip.clear(); } - pTableModel->getRenderer()->GetFormattedCellString( aCellToolTip, hitCol, hitRow, sHelpText ); + pTableModel->getRenderer()->GetFormattedCellString( aCellToolTip, sHelpText ); if ( sHelpText.indexOf( '\n' ) >= 0 ) nHelpStyle = QuickHelpFlags::TipStyleBalloon; |