Remove warning node for unused variables after type inference