Skip to content

Commit 7a37313

Browse files
no mola la cache en los jsons
1 parent fa35b0f commit 7a37313

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

source/utils/Paths.hx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ class Paths
4545
public static var cachedAtlas:StringMap<FlxAtlasFrames> = new StringMap();
4646
public static var permanentAtlas:Array<String> = [];
4747

48-
public static var cachedJson:StringMap<Dynamic> = new StringMap();
49-
public static var permanentJson:Array<String> = [];
50-
5148
public static var cachedMultiAtlas:StringMap<FlxAtlasFrames> = new StringMap();
5249
public static var permanentMultiAtlas:Array<String> = [];
5350

@@ -113,8 +110,7 @@ class Paths
113110
{cache: cachedGraphics, permanent: permanentGraphics},
114111
{cache: cachedSounds, permanent: permanentSounds},
115112
{cache: cachedAtlas, permanent: permanentAtlas},
116-
{cache: cachedMultiAtlas, permanent: permanentMultiAtlas},
117-
{cache: cachedJson, permanent: permanentJson}
113+
{cache: cachedMultiAtlas, permanent: permanentMultiAtlas}
118114
];
119115

120116
if (clearPermanent)
@@ -393,9 +389,6 @@ class Paths
393389
{
394390
var path:String = file + '.json';
395391

396-
if (cachedJson.exists(path))
397-
return cachedJson.get(path);
398-
399392
if (!exists(path))
400393
{
401394
if (missingPrint)
@@ -406,11 +399,6 @@ class Paths
406399

407400
var json:Dynamic = Json.parse(getContent(path));
408401

409-
cachedJson.set(path, json);
410-
411-
if (permanent)
412-
permanentJson.push(path);
413-
414402
return json;
415403
}
416404

0 commit comments

Comments
 (0)