Get rid of rather useless "goto" statement in get_mangled_type()

It's not significantly simpler to use "goto" in this function, so just
replace it with "return".

Also remove the unnecessary checks for strings being deleted being
non-null, as they always are.

No real changes.
This commit is contained in:
Vadim Zeitlin 2019-08-04 17:06:10 +02:00
commit 579c441aa9

View file

@ -577,7 +577,8 @@ public:
SwigType_del_pointer(type);
if (SwigType_isfunction(type)) {
Printf(result, "f");
goto ready;
Delete(type);
return result;
}
Delete(type);
type = Copy(type_arg);
@ -602,7 +603,6 @@ public:
else
Printf(result, "%s", Char(Swig_name_mangle(SwigType_base(type))));
ready:
if (prefix)
Delete(prefix);
if (type)