A very interesting function is “Remove Unused Variables” in CSIDE:

This command will remove all unused variables from the functions in the edit window.
At left, you see the declaration “integer s=1”, which is not used in the function. At right, you see, this declaration is deleted after the execution of the “Remove Unused Variables” command