From 962f627283997b98b05c2bb3fb2b39c4cbc37be4 Mon Sep 17 00:00:00 2001 From: "jordi.saludes" Date: Wed, 28 Jul 2010 14:21:43 +0000 Subject: [PATCH] Removing obsolete code in py-bindings. --- contrib/py-bindings/gfmodule.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/contrib/py-bindings/gfmodule.c b/contrib/py-bindings/gfmodule.c index f95100076..bd4693d2e 100644 --- a/contrib/py-bindings/gfmodule.c +++ b/contrib/py-bindings/gfmodule.c @@ -41,42 +41,12 @@ static PyObject* pgf_repr(PGF *self) { Lang* lang = gf_abstractName(self); char* abs = gf_showLanguage(lang); - // gf_freeLanguage(&lang); Py_DECREF(lang); PyObject* str = PyString_FromFormat("", abs); free(abs); return str; } -/* static gfType* -startCategory(PGF *self, PyObject *noarg) -{ - gfType *cat; - if (!checkType(self, &PGFType)) return NULL; - cat = (gfType*)gfTypeType.tp_new(&gfTypeType,NULL,NULL); - gf_startCat(self, cat); - return cat; -} - -inline static PyObject* -categories(PGF* self) -{ - return gf_categories(self); -} - -inline static PyObject* -functions(PGF* self) -{ - return gf_functions(self); - } - -inline static PyObject* -languages(PGF* self) -{ - return gf_languages(self); -} -*/ - static PyObject* languageCode(PGF *self, PyObject *args) { @@ -263,7 +233,6 @@ infer_expr(Expr *self, PyObject* args) { PyErr_Format(PyExc_ValueError, "Must be a pgf module."); return NULL; } - // gfType* gftp = (gfType*)gfTypeType.tp_new(&gfTypeType,NULL,NULL); return gf_inferexpr(pgf, self); }