This smell occurs when a statement assigns a value to a local variable which is not used in any subsequent instruction. A variant of the smell occurs when a return statement assigns a value to a local variable which is not used in any subsequent instruction. (i.e. return(x=1); )
All rights reserved (c) Tushar Sharma 2017-23.