key.c: Delete the `barf' function.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 20 Oct 2019 21:53:24 +0000 (22:53 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 10 Apr 2020 21:42:39 +0000 (22:42 +0100)
What even?

I think this must have been ancient debugging code, but it should never
have seen release.

key.c

diff --git a/key.c b/key.c
index 87462ab..b51c456 100644 (file)
--- a/key.c
+++ b/key.c
@@ -2072,16 +2072,6 @@ static PyTypeObject keyfile_pytype_skel = {
 
 /*----- Global stuff ------------------------------------------------------*/
 
-static PyObject *meth_barf(PyObject *me, PyObject *arg)
-{
-  int err;
-
-  if (PyArg_ParseTuple(arg, "i:barf", &err))
-    KEYERR(err);
-end:
-  return (0);
-}
-
 static PyMethodDef methods[] = {
 #define METHNAME(func) meth_##func
   METH (_KeyData_readflags,
@@ -2089,7 +2079,6 @@ static PyMethodDef methods[] = {
   METH (_KeyData_writeflags,   "KeyData.writeflags(FLAGS) -> STRING")
   METH (_KeyData_read,         "KeyData.read(STRING) -> (KD, REST)")
   METH (_KeyData_decode,       "KeyData.decode(BYTES) -> KD")
-  METH (barf,                  "barf(ERR)")
 #undef METHNAME
   { 0 }
 };