We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Feature Request: “Unused Variables” or “All Variables” (even unused)

Home Forums Bug Reports and Feature Requests Feature Request: “Unused Variables” or “All Variables” (even unused)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28799
    GLiFTeK
    Customer

    Hi,
    I remember earlier versions of Verge would open the puzzles editor WITHOUT the the variables that hadn’t been used in puzzles from a previous save.

    Ie: you revise your puzzles with improvements for better efficiency,tree-shake,de-lint etc..
    Most likely many uneeded variables deleted from your puzzles setup, but all those old variables are still in your left menu to select from.

    This is good at first in case you need to made an error and need to retrieve them.
    In the earlier version, when you next reopened that puzzles file, the unused ones would be gone…good riddance.

    But now they stay in the menu, and can seriously crowd it up, making it difficult to navigate and find things.

    The “All Variable Names” can provide a list of all variables USED in puzzles… But what about one that provides a list of variables that are NOT used? Or one that lists all variables, regardless of whether they’re used, then compare that to a list from “all variable names” then get a list of unused ones as a result. …

    Then you could go and delete them all.

    OR…orrr… You could have a section at the bottom of the variables menu with only “Unused” Variables, and There could be just a button there that says purge unused variables. Problem solved.

    It did it before. Shouldn’t be tray difficult right?

    Also..question… When the puzzles editor saves out to your visual_logic.js file, are those unused variables carried along?

    #28843

    Hi,

    But now they stay in the menu, and can seriously crowd it up, making it difficult to navigate and find things.

    Unused variables should be gone after reloading the editor. This looks like a bug. Can you provide an example? visual_logic.xml file should be enough to see if something’s wrong with the variables.

    Also..question… When the puzzles editor saves out to your visual_logic.js file, are those unused variables carried along?

    No, if they are unused they shouldn’t be in visual_logic.js.

    Co-founder and lead developer at Soft8Soft.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.