Hello,

I have tried Unused local variables function on our biggest project and it doesn't compile after that. Reason is that we have multi-line function definitions on it.

Supose something like this:
Code:
Function MyFunction Integer iParamN1;
    Integer iParamN2 Integer iParamN3 Integer iParamN4 Integer iParamN5;
    Integer iParamN6 Integer iParamN7 Integer iParamN8 Integer iParamN9 Returns Integer
It gets refactored to (pay attention to second line semicolon... & Returns Keyword...):
Code:
Function MyFunction Integer iParamN1;
    Integer iParamN2 Integer iParamN3 Integer iParamN4 Integer
    Integer iParamN6 Integer iParamN7 Integer iParamN8 Integer iParamN9 Integer
NOTE 1
iParamN5 is used in the function, problem is that it is thinking that iParamN5; is not used in the function (obviously iParamN5; is not been used).
If I change it to "iParamN5;" to "iParamN5 ;" then it deletes " ;", which is still wrong (semicolon is not a variable name).

NOTE 2
Let's supose that inside the function I have something like this:
Code:
Get MyOtherFunction iParamN1 iParamN3 iParamN5;
    iParamN7 iParamN9 to bResult
Then iParamN5; doesn't get deleted because I am using that "variable"

P.D: Returns Keyword is commented here: https://support.dataaccess.com/Forum...eturn-keyword)

Regards.