Bug 820556 - Remove unused function. r=snorp
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 11 Dec 2012 17:33:09 -0500
changeset 121285 99a78630d2c237ae5fb6a712eed340c990e43b3f
parent 121284 2fd28dc82cc010576a337cfbe8d1ec4774ea0f53
child 121286 939a0ad6e8d6453f0ebc86ea7b136a6bd01ede9c
push idunknown
push userunknown
push dateunknown
reviewerssnorp
bugs820556
milestone20.0a1
Bug 820556 - Remove unused function. r=snorp
mobile/android/base/gfx/Layer.java
--- a/mobile/android/base/gfx/Layer.java
+++ b/mobile/android/base/gfx/Layer.java
@@ -63,25 +63,16 @@ public abstract class Layer {
     public abstract void draw(RenderContext context);
 
     /** Given the intrinsic size of the layer, returns the pixel boundaries of the layer rect. */
     protected RectF getBounds(RenderContext context) {
         return RectUtils.scale(new RectF(mPosition), context.zoomFactor / mResolution);
     }
 
     /**
-     * Returns the region of the layer that is considered valid. The default
-     * implementation of this will return the bounds of the layer, but this
-     * may be overridden.
-     */
-    public Region getValidRegion(RenderContext context) {
-        return new Region(RectUtils.round(getBounds(context)));
-    }
-
-    /**
      * Call this before modifying the layer. Note that, for TileLayers, "modifying the layer"
      * includes altering the underlying CairoImage in any way. Thus you must call this function
      * before modifying the byte buffer associated with this layer.
      *
      * This function may block, so you should never call this on the main UI thread.
      */
     public void beginTransaction() {
         if (mTransactionLock.isHeldByCurrentThread())