Just delete the whole thing and use `cvIsNaN` where needed.