summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2022-10-06 18:09:08 +1300
committerOlly Betts <olly@survex.com>2022-10-06 18:09:08 +1300
commitf54c504150860e709b8db6be04ba45377c46a173 (patch)
tree7e26ec2483621bc9322c691c639d2eb338ee575c /Lib
parent37c8185bd3665673151f934b55849766fa664dd3 (diff)
downloadswig-f54c504150860e709b8db6be04ba45377c46a173.tar.gz
Remove dead conditional code
SWIG_POINTER_EXCEPTION has had the value zero since 2006 (it's only still present for backward compatibility).
Diffstat (limited to 'Lib')
-rw-r--r--Lib/python/pyrun.swg6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg
index eb8ae1673..9b6dd28ee 100644
--- a/Lib/python/pyrun.swg
+++ b/Lib/python/pyrun.swg
@@ -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;
}