Remove embedBytesHL() function.

This was likely added when `#if hl` began to fail, hiding the problem. With the issue fixed, there's no more need for a workaround.
This commit is contained in:
Joseph Cloutier
2024-02-24 19:25:37 -05:00
parent 95cef72616
commit adcccc863f
2 changed files with 1 additions and 20 deletions

View File

@@ -945,7 +945,7 @@ class Bytes
}
#elseif hl
#if !macro
@:autoBuild(lime._internal.macros.AssetsMacro.embedBytesHL()) // Enable @:bytes embed metadata
@:autoBuild(lime._internal.macros.AssetsMacro.embedBytes()) // Enable @:bytes embed metadata
#end
@:coreApi
class Bytes

View File

@@ -46,25 +46,6 @@ class AssetsMacro
return fields;
}
macro public static function embedBytesHL():Array<Field>
{
var fields = embedData(":file");
if (fields == null) return null;
var definition = macro class Temp
{
public function new(?length:Int, ?bytesData:haxe.io.BytesData)
{
var bytes = haxe.Resource.getBytes(resourceName);
super(bytes.b, bytes.length);
}
};
fields.push(definition.fields[0]);
return fields;
}
macro public static function embedByteArray():Array<Field>
{
var fields = embedData(":file");