From 33feca7527758466af7b6ffc503cf46fc18d0ee2 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Wed, 21 Apr 2021 17:43:12 +1200 Subject: Eliminate SWIG_SetZval() $needNewFlow is now only used for a different hack in a directorout typemap. --- Source/Modules/php.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'Source/Modules/php.cxx') diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index ae3ae0c93..b30f57076 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -1402,7 +1402,6 @@ public: Replaceall(tm, "$input", Swig_cresult_name()); Replaceall(tm, "$result", php_constructor ? "ZEND_THIS" : "return_value"); Replaceall(tm, "$owner", newobject ? "1" : "0"); - Replaceall(tm, "$needNewFlow", php_constructor && is_class(d) ? "2" : "0"); Printf(f->code, "%s\n", tm); } else { Swig_warning(WARN_TYPEMAP_OUT_UNDEF, input_file, line_number, "Unable to use return type %s in function %s.\n", SwigType_str(d, 0), name); -- cgit v1.2.1