Delete all local procedures that are not used in the current program.
All local procedures that cannot be reached by any procedure call from the main
procedure are deleted from the program. If the current procedure is among
the deleted procedures, the main procedure becomes the current procedure.