Skip to content

Commit

Permalink
Delete an unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
meikpiep committed Jan 4, 2024
1 parent 85e722e commit d231d32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class GridCellUI(
this.westPixel = padding.first + cellSize * cell.column + GridUI.BORDER_WIDTH
this.northPixel = padding.second + cellSize * cell.row + GridUI.BORDER_WIDTH

drawSelectionRect(canvas, layoutDetails, fastFinishMode)
drawSelectionRect(canvas, layoutDetails)
drawCellValue(canvas, cellSize, fastFinishMode, numeralSystem)

if (cell.possibles.isNotEmpty()) {
Expand Down Expand Up @@ -137,8 +137,8 @@ class GridCellUI(
drawCellRect(layoutDetails, paint, canvas)
}

private fun drawSelectionRect(canvas: Canvas, layoutDetails: GridLayoutDetails, fastFinishMode: Boolean) {
val paint = paintHolder.cellForegroundPaint(cell, fastFinishMode) ?: return
private fun drawSelectionRect(canvas: Canvas, layoutDetails: GridLayoutDetails) {
val paint = paintHolder.cellForegroundPaint(cell) ?: return

drawCellRect(layoutDetails, paint, canvas)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class GridPaintHolder(gridUI: GridUI) {
else -> null
}

fun cellForegroundPaint(cell: GridCell, fastFinishMode: Boolean) = when {
fun cellForegroundPaint(cell: GridCell) = when {
cell.isSelected -> selectedPaint
cell.isLastModified -> lastModifiedPaint
else -> null
Expand Down

0 comments on commit d231d32

Please sign in to comment.