mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-09 11:12:51 -06:00
Remove commented-out error-handling code
See https://github.com/GrammaticalFramework/gf-core/issues/130#issuecomment-908937688
This commit is contained in:
@@ -2987,21 +2987,9 @@ PGF_getCategories(PGFObject *self, void *closure)
|
|||||||
if (categories == NULL)
|
if (categories == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
// GuPool* tmp_pool = gu_local_pool();
|
|
||||||
//
|
|
||||||
// Create an exception frame that catches all errors.
|
|
||||||
// GuExn* err = gu_new_exn(tmp_pool);
|
|
||||||
|
|
||||||
PyPGFClosure clo = { { pgf_collect_cats }, self, categories };
|
PyPGFClosure clo = { { pgf_collect_cats }, self, categories };
|
||||||
pgf_iter_categories(self->pgf, &clo.fn);
|
pgf_iter_categories(self->pgf, &clo.fn);
|
||||||
|
|
||||||
// if (!gu_ok(err)) {
|
|
||||||
// Py_DECREF(categories);
|
|
||||||
// gu_pool_free(tmp_pool);
|
|
||||||
// return NULL;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// gu_pool_free(tmp_pool);
|
|
||||||
return categories;
|
return categories;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3055,20 +3043,9 @@ PGF_getFunctions(PGFObject *self, void *closure)
|
|||||||
if (functions == NULL)
|
if (functions == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
// GuPool* tmp_pool = gu_local_pool();
|
|
||||||
|
|
||||||
// Create an exception frame that catches all errors.
|
|
||||||
// GuExn* err = gu_new_exn(tmp_pool);
|
|
||||||
|
|
||||||
PyPGFClosure clo = { { pgf_collect_funs }, self, functions };
|
PyPGFClosure clo = { { pgf_collect_funs }, self, functions };
|
||||||
pgf_iter_functions(self->pgf, &clo.fn);
|
pgf_iter_functions(self->pgf, &clo.fn);
|
||||||
// if (!gu_ok(err)) {
|
|
||||||
// Py_DECREF(functions);
|
|
||||||
// gu_pool_free(tmp_pool);
|
|
||||||
// return NULL;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// gu_pool_free(tmp_pool);
|
|
||||||
return functions;
|
return functions;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3090,20 +3067,9 @@ PGF_functionsByCat(PGFObject* self, PyObject *args)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// GuPool *tmp_pool = gu_local_pool();
|
|
||||||
|
|
||||||
// Create an exception frame that catches all errors.
|
|
||||||
// GuExn* err = gu_new_exn(tmp_pool);
|
|
||||||
|
|
||||||
PyPGFClosure clo = { { pgf_collect_funs }, self, functions };
|
PyPGFClosure clo = { { pgf_collect_funs }, self, functions };
|
||||||
pgf_iter_functions_by_cat(self->pgf, catname, &clo.fn);
|
pgf_iter_functions_by_cat(self->pgf, catname, &clo.fn);
|
||||||
// if (!gu_ok(err)) {
|
|
||||||
// Py_DECREF(functions);
|
|
||||||
// gu_pool_free(tmp_pool);
|
|
||||||
// return NULL;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// gu_pool_free(tmp_pool);
|
|
||||||
return functions;
|
return functions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user