Skip to content

Commit

Permalink
Remove unused symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsacha committed Feb 4, 2020
1 parent a8022e0 commit 33c37fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2019, ScalaFX Project
* Copyright (c) 2011-2020, ScalaFX Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2019, ScalaFX Project
* Copyright (c) 2011-2020, ScalaFX Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -53,7 +53,7 @@ class Pong {
private val startButtonVisible = BooleanProperty(true)

private val keyFrame = KeyFrame(10 ms, onFinished = {
event: ActionEvent =>
_: ActionEvent =>
checkForCollision()
val horzPixels = if (ball.movingRight) 1 else -1
val vertPixels = if (ball.movingDown) 1 else -1
Expand All @@ -71,7 +71,7 @@ class Pong {
text = "Start!"
visible <== startButtonVisible
onAction = {
event: ActionEvent =>
_: ActionEvent =>
startButtonVisible() = false
pongAnimation.playFromStart()
pongComponents.requestFocus()
Expand Down Expand Up @@ -138,7 +138,7 @@ class Pong {
}
}

private val timer = AnimationTimer { t =>
private val timer = AnimationTimer { _ =>
val paddleSpeed = 3

def updatePaddle(paddle: Paddle): Unit = {
Expand Down

0 comments on commit 33c37fe

Please sign in to comment.