Remove dead conditional code

SWIG_POINTER_EXCEPTION has had the value zero since 2006 (it's only
still present for backward compatibility).
This commit is contained in:
Olly Betts 2022-10-06 18:09:08 +13:00
commit f54c504150

View file

@ -1844,12 +1844,6 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(arg
void *result;
if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
PyErr_Clear();
#if SWIG_POINTER_EXCEPTION
if (flags) {
SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
SWIG_Python_ArgFail(argnum);
}
#endif
}
return result;
}