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:
parent
37c8185bd3
commit
f54c504150
1 changed files with 0 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue