remove redundant variable declaration