Remove Unused Local Variables

Description:  refactoring that removes unused variables in Fortran code,  making it more readable, and could generate gains of performance, depending on the compiler used.

State: Implemeted         Author:  Gustavo Rissetti, Timofey Yuvashev, Jeff Overbey      Version:   Photran 6.0

Code Example:

    program main
    implicit none

    integer::i
    integer::j
    integer::k
    integer::w
    integer::y
    integer::z

    k=(2*k+3*i-5*j)
    print *,z

end program

    program main
    implicit none

    integer::i
    integer::j
    integer::k
    
    
    integer::z

    k=(2*k+3*i-5*j)
    print *,z

end program

ScreenShots

      

HTML Comment Box is loading comments...