remove unused or highlight unused variables

This commit is contained in:
Vogel, Rick 2023-05-08 13:26:49 +02:00
parent f0c7e3690a
commit 0e240cafb7
2 changed files with 3 additions and 2 deletions

View File

@ -166,6 +166,8 @@ QskAspect::Subcontrol QskListView::rowSubControl( int row ) const noexcept
QskAspect::Subcontrol QskListView::cellSubControl( int row, int col ) const noexcept
{
Q_UNUSED(row);
Q_UNUSED(col);
return Cell;
}
@ -399,6 +401,7 @@ void QskListView::componentComplete()
qreal QskListView::rowOffset( int row ) const
{
Q_UNUSED(row);
return 0.0;
}

View File

@ -136,7 +136,6 @@ void QskListViewSkinlet::updateBackgroundNode( const QskListView* listView, QSGN
auto* boxNode = rowNode->firstChild();
auto prepend = boxNode == nullptr;
const auto color = listView->color(subControl);
const auto gradient = listView->gradientHint(subControl);
boxNode = updateBoxNode( listView, boxNode, boxRect, subControl );
@ -168,7 +167,6 @@ void QskListViewSkinlet::updateBackgroundNodes(
if ( rowMax >= listView->rowCount() )
rowMax = listView->rowCount() - 1;
const int rowSelected = listView->selectedRow();
const double x0 = viewRect.left();
const double y0 = viewRect.top();