Skip to content

FlxAnimateFrames#fromTextureAtlas calls Assets#list only to never actually use it #77

@NotHyper-474

Description

@NotHyper-474

var texts = AssetWrapper.list(TEXT).filter((text) -> StringTools.startsWith(text, '$Path/sprite'));
var texts = [];

For some reason it does this but then shadows the variable with an empty array. This causes some extra unnecessary overhead since Haxe doesn't optimize the unused function out.

Sorry if this counts as a bug but the template for it said "no code involved".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions