summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorjordi.saludes <jordi.saludes@upc.edu>2010-07-28 14:21:43 +0000
committerjordi.saludes <jordi.saludes@upc.edu>2010-07-28 14:21:43 +0000
commite3e525ff6e50b18ea37d91891959914afbe9e08a (patch)
tree3226fa5d3532a1aef105f4e5ed2f38e1d97d4d88 /contrib
parentc3e35728eb8906f1a4afa32e86f668974914d714 (diff)
Removing obsolete code in py-bindings.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/py-bindings/gfmodule.c31
1 files changed, 0 insertions, 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("<gf.pgf with abstract %s>", 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);
}