Bug 1081406: Remove unnecessary numeric casts. r=rnewman

This commit is contained in:
Chris Kitching
2014-10-11 00:42:36 +01:00
parent 8459338c13
commit 74d2f1eb58
17 changed files with 27 additions and 27 deletions

View File

@@ -170,7 +170,7 @@ class JavaPanZoomController
@Override public void prefValue(String pref, int value) {
if (pref.equals("ui.scrolling.gamepad_dead_zone")) {
GamepadUtils.overrideDeadZoneThreshold((float)value / 1000f);
GamepadUtils.overrideDeadZoneThreshold(value / 1000f);
}
}
@@ -660,7 +660,7 @@ class JavaPanZoomController
}
private void track(float x, float y, long time) {
float timeDelta = (float)(time - mLastEventTime);
float timeDelta = (time - mLastEventTime);
if (FloatUtils.fuzzyEquals(timeDelta, 0)) {
// probably a duplicate event, ignore it. using a zero timeDelta will mess
// up our velocity