Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/kmcaster.git

Remove unused constants

Author DaveJarvis <email>
Date 2020-07-25 15:17:11 GMT-0700
Commit 9ed3952d7393840162c17b216ccc43f1239caa22
Parent e55543c
src/main/com/whitemagicsoftware/kmcaster/KmCaster.java
@SuppressWarnings("unused")
public class KmCaster extends JFrame {
- private static final float ARC = 8;
-
- /**
- * Fastest typing speed in words per minute.
- */
- private final static float TYPING_SPEED_WPM = 216f;
-
- /**
- * Fastest typing speed in words per second.
- */
- private final static float TYPING_SPEED_WPS = TYPING_SPEED_WPM / 60f;
-
- /**
- * Fastest typing speed in characters per second.
- */
- private final static float TYPING_SPEED_CPS = TYPING_SPEED_WPS * 5.1f;
-
- /**
- * Fastest typing speed in characters per millisecond, which will
- * govern the speed that any pressed key remains visible before showing
- * as released, even if the typist released the key sooner.
- */
- private final static float TYPING_SPEED_CPMS = TYPING_SPEED_CPS / 1000;
-
private final HardwareImages mHardwareImages = new HardwareImages();
private final EventHandler mEventHandler =
private Shape createShape() {
return new RoundRectangle2D.Double(
- 0, 0, getWidth(), getHeight(), ARC, ARC
+ 0, 0, getWidth(), getHeight(), 0, 0
);
}
Delta 1 line added, 25 lines removed, 24-line decrease