diff --git a/mobile/android/base/gfx/LayerController.java b/mobile/android/base/gfx/LayerController.java index 2b0c96df9e6..74b7b921b6d 100644 --- a/mobile/android/base/gfx/LayerController.java +++ b/mobile/android/base/gfx/LayerController.java @@ -178,15 +178,6 @@ public class LayerController { mView.requestRender(); } - /** Scrolls the viewport to the given point. You must hold the monitor while calling this. */ - public void scrollTo(PointF point) { - mViewportMetrics.setOrigin(point); - Log.d(LOGTAG, "scrollTo: " + mViewportMetrics); - notifyLayerClientOfGeometryChange(); - GeckoApp.mAppContext.repositionPluginViews(false); - mView.requestRender(); - } - /** Scrolls the viewport by the given offset. You must hold the monitor while calling this. */ public void scrollBy(PointF point) { PointF origin = mViewportMetrics.getOrigin(); @@ -199,15 +190,6 @@ public class LayerController { mView.requestRender(); } - /** Sets the current viewport. You must hold the monitor while calling this. */ - public void setViewport(RectF viewport) { - mViewportMetrics.setViewport(viewport); - Log.d(LOGTAG, "setViewport: " + mViewportMetrics); - notifyLayerClientOfGeometryChange(); - GeckoApp.mAppContext.repositionPluginViews(false); - mView.requestRender(); - } - /** Sets the current page size. You must hold the monitor while calling this. */ public void setPageSize(FloatSize size) { if (mViewportMetrics.getPageSize().fuzzyEquals(size)) @@ -234,11 +216,6 @@ public class LayerController { mView.requestRender(); } - /** Scales the viewport. You must hold the monitor while calling this. */ - public void scaleTo(float zoomFactor) { - scaleWithFocus(zoomFactor, new PointF(0,0)); - } - /** * Scales the viewport, keeping the given focus point in the same place before and after the * scale operation. You must hold the monitor while calling this. @@ -254,16 +231,6 @@ public class LayerController { mView.requestRender(); } - /** - * Sets the viewport origin and scales in one operation. You must hold the monitor while - * calling this. - */ - public void scaleWithOrigin(float zoomFactor, PointF origin) { - mViewportMetrics.setOrigin(origin); - Log.d(LOGTAG, "scaleWithOrigin: " + mViewportMetrics + "; zf=" + zoomFactor); - scaleTo(zoomFactor); - } - public boolean post(Runnable action) { return mView.post(action); } public void setOnTouchListener(OnTouchListener onTouchListener) {