C++ API: remove deprecated throw lists