From: Mark Wooding Date: Sat, 23 Nov 2019 16:04:29 +0000 (+0000) Subject: field.c: Delete the completely unused `getfe' function. X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/commitdiff_plain/ef352465e0a513d83fb4c76695a4787387cf8e73 field.c: Delete the completely unused `getfe' function. It was introduced in the original commit, and never used at all. --- diff --git a/catacomb-python.h b/catacomb-python.h index 517ec0b..c272b53 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -372,7 +372,6 @@ extern PyTypeObject *fe_pytype; #define FE_FOBJ(o) ((PyObject *)(o)->ob_type) #define FE_X(o) (((fe_pyobj *)(o))->x) extern PyObject *fe_pywrap(PyObject *, mp *); -extern mp *getfe(field *, PyObject *); typedef struct fe_pyobj { PyObject_HEAD diff --git a/field.c b/field.c index fae0365..224363d 100644 --- a/field.c +++ b/field.c @@ -126,16 +126,6 @@ static mp *tofe(field *f, PyObject *o) return (y); } -mp *getfe(field *f, PyObject *o) -{ - mp *x = 0; - if ((x = tofe(f, o)) == 0) { - PyErr_Format(PyExc_TypeError, "can't convert %.100s to fe", - o->ob_type->tp_name); - } - return (x); -} - /*----- Field elements ----------------------------------------------------*/ static int febinop(PyObject *x, PyObject *y,