removed useless variable (cherry picked from commit a9e6fca)