Removes unused variables