Fix GCC uninitialised variable warning by deleting unnecessary code.