Skip to content

Detect and remove unused functions #3

Description

@Anton-Latukha

Would be great if flatten could track what functions are really used. And then if possible, - variables.
Maybe it is done already in the flatten, I not looked at this time.
If flattened scripts deliberately have some sort of additional info for shellfire development after, flatten can have a option --strip

Like start from:
core_init_main "$@" and recursively check what functions use what functions.
And; as script has the only one entry point, root node - core_init_main - that means all functions not connected with core_init_main can be cleaned-out.

Basic overdrive example parses example right after flatten. So I see it probably works well without unconnected functions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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