Skip to content

Support Statement: Deliberate Code Removal Strategies

Regarding removing “dead” code, we recommend applying a bit of analysis and being more deliberate about removing code.

To identify code usage we have a references report:
/docs/gmstudio-user-guide/reporting/semantic-model-reports

To remove the definition and, optionally the use, of a symbol we have the Refactor/Remove command:
/docs/gmbasic-language-reference/gmplintroduction/gmplrefactoringstatements/gmplremovestatement

These two capabilities could be synthesized using our gmSL scripting language to automate the process:
/docs/gmbasic-language-reference/gmslintroduction

See also Support Statement: Unused Symbol Analysis and Reporting

Download:
This section Markdown PDF