Fix some useless code detected by scan-build (LLVM/Clang)

This commit is contained in:
Sylvestre Ledru 2013-03-05 18:17:50 +01:00 committed by William S Fulton
commit e0b14786d6
7 changed files with 2 additions and 16 deletions

View file

@ -787,7 +787,6 @@ public:
}
f = NewWrapper();
numopt = 0;
String *outarg = NewStringEmpty();
String *cleanup = NewStringEmpty();
@ -1736,7 +1735,6 @@ public:
if (!class_node) {
/* This is needed when we're returning a pointer to a type
* rather than returning the type by value or reference. */
class_node = current_class;
Delete(mangled);
mangled = NewString(SwigType_manglestr(ret_type));
class_node = Getattr(zend_types, mangled);