Huge optimization
This commit is contained in:
@@ -48,8 +48,6 @@ class Assets
|
||||
{
|
||||
public static var cache:IAssetCache = new AssetCache();
|
||||
|
||||
public static var forceAssetLibrary:LimeAssetLibrary = null;
|
||||
|
||||
@:noCompletion private static var dispatcher:EventDispatcher #if !macro = new EventDispatcher() #end;
|
||||
private static var libraryBindings:Map<String, AssetLibrary> = new Map();
|
||||
|
||||
@@ -78,9 +76,6 @@ class Assets
|
||||
**/
|
||||
public static function exists(id:String, type:AssetType = null):Bool
|
||||
{
|
||||
if(forceAssetLibrary != null) {
|
||||
return forceAssetLibrary.exists(id, cast type);
|
||||
}
|
||||
#if lime
|
||||
return LimeAssets.exists(id, cast type);
|
||||
#else
|
||||
@@ -265,9 +260,6 @@ class Assets
|
||||
**/
|
||||
public static function getPath(id:String):String
|
||||
{
|
||||
if(forceAssetLibrary != null) {
|
||||
return forceAssetLibrary.getPath(id);
|
||||
}
|
||||
#if lime
|
||||
return LimeAssets.getPath(id);
|
||||
#else
|
||||
@@ -325,9 +317,6 @@ class Assets
|
||||
**/
|
||||
public static function getText(id:String):String
|
||||
{
|
||||
if(forceAssetLibrary != null) {
|
||||
return forceAssetLibrary.getText(id);
|
||||
}
|
||||
#if lime
|
||||
return LimeAssets.getText(id);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user