Remove NULL check which can never be NULL

A pointer to a struct member can't be NULL!
This commit is contained in:
Olly Betts 2021-04-02 07:59:35 +13:00
commit d2a0956766

View file

@ -144,8 +144,7 @@ static void print_creation_free_wrapper(Node *n) {
Printf(s, " SWIG_remove((%s *)obj->ptr);\n", Getattr(n, "classtype"));
}
Printf(s, " if(&obj->std)\n");
Printf(s, " zend_object_std_dtor(&obj->std);\n}\n\n\n");
Printf(s, " zend_object_std_dtor(&obj->std);\n}\n\n\n");
Printf(s, "/* Object Creation Method for class %s */\n",class_name);
Printf(s, "zend_object * %s_object_new(zend_class_entry *ce) {\n",class_name);