From a0720885bd3423afcd7248d9ede77480d2bc8d93 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Sun, 10 Feb 2019 13:58:07 +1300 Subject: [PATCH] Remove PHP-specific avoidance of uninitialised variable This code is no longer needed since ebd37155a81fd0c9504522e43cbdaf38312a132c addressed this more generically. --- Lib/php/utils.i | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Lib/php/utils.i b/Lib/php/utils.i index 8581646a2..ed6e08ff4 100644 --- a/Lib/php/utils.i +++ b/Lib/php/utils.i @@ -77,18 +77,12 @@ %{ if (!EG(exception)) { CONVERT_IN($result, $1_ltype, *$input); - } else { - typedef $1_ltype swig_result_typedef; - $result = swig_result_typedef(); } %} %typemap(directorout) const TYPE & ($*1_ltype temp) %{ if (!EG(exception)) { CONVERT_IN(temp, $*1_ltype, *$input); - } else { - typedef $*1_ltype swig_result_typedef; - temp = swig_result_typedef(); } $result = &temp; %}