Bug 714711 - A few unused local variables in PanZoomController.onScaleEnd [r=kats]
authorMark Finkle <mfinkle@mozilla.com>
Tue, 03 Jan 2012 12:19:49 -0500
changeset 84920 91e7e04c53b5f3a6a6e09902fb265b93320ca677
parent 84919 94c669ea03c2314d95f586fe613d07263711145c
child 84921 5bbbb0127380504fccaaacb64e807a74af9cb789
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs714711
milestone12.0a1
Bug 714711 - A few unused local variables in PanZoomController.onScaleEnd [r=kats]
mobile/android/base/ui/PanZoomController.java
--- a/mobile/android/base/ui/PanZoomController.java
+++ b/mobile/android/base/ui/PanZoomController.java
@@ -975,29 +975,23 @@ public class PanZoomController
 
         return true;
     }
 
     @Override
     public void onScaleEnd(ScaleGestureDetector detector) {
         Log.d(LOGTAG, "onScaleEnd in " + mState);
 
-        PointF o = mController.getOrigin();
         if (mState == PanZoomState.ANIMATED_ZOOM)
             return;
 
         mState = PanZoomState.PANNING_HOLD_LOCKED;
         mX.firstTouchPos = mX.lastTouchPos = mX.touchPos = detector.getFocusX();
         mY.firstTouchPos = mY.lastTouchPos = mY.touchPos = detector.getFocusY();
 
-        RectF viewport = mController.getViewport();
-
-        FloatSize pageSize = mController.getPageSize();
-        RectF pageRect = new RectF(0,0, pageSize.width, pageSize.height);
-
         // Force a viewport synchronisation
         mController.setForceRedraw();
         mController.notifyLayerClientOfGeometryChange();
         GeckoApp.mAppContext.showPluginViews();
 
         mState = PanZoomState.TOUCHING;
         mX.velocity = mY.velocity = 0.0f;
         mX.locked = mY.locked = false;