Remove redundant globalToLocal methods

This commit is contained in:
Pavel fljot 2012-08-17 18:52:24 +03:00
parent 4839b1fa59
commit 4d1e467b2d
4 changed files with 1 additions and 19 deletions

View file

@ -1,6 +1,5 @@
package org.gestouch.core
{
import flash.geom.Point;
/**
* @author Pavel fljot
*/
@ -8,8 +7,6 @@ package org.gestouch.core
{
function get target():Object;
function globalToLocal(point:Point):Point;
function contains(object:Object):Boolean;
}
}

View file

@ -36,12 +36,6 @@ package org.gestouch.extensions.native
}
public function globalToLocal(point:Point):Point
{
return (target as DisplayObject).globalToLocal(point);
}
public function contains(object:Object):Boolean
{
const targetAsDOC:DisplayObjectContainer = this.target as DisplayObjectContainer;

View file

@ -1,12 +1,10 @@
package org.gestouch.extensions.starling
{
import starling.core.Starling;
import starling.display.DisplayObject;
import starling.display.DisplayObjectContainer;
import org.gestouch.core.IDisplayListAdapter;
import flash.geom.Point;
import flash.utils.Dictionary;
@ -38,13 +36,6 @@ package org.gestouch.extensions.starling
}
public function globalToLocal(point:Point):Point
{
point = StarlingUtils.adjustGlobalPoint(Starling.current, point);
return (target as DisplayObject).globalToLocal(point);
}
public function contains(object:Object):Boolean
{
const targetAsDOC:DisplayObjectContainer = this.target as DisplayObjectContainer;