diff options
author | Bert Vermeulen <bert@biot.com> | 2013-12-13 11:52:38 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2013-12-13 11:53:07 +0100 |
commit | c8233c78da6acb23b74afe271c30355442fdaa5c (patch) | |
tree | 85e476957cc0b09fc6570341a8e306639eebb98f /type_decoder.c | |
parent | be6733ca41275b59a5e240ff104f2a16ad3828d3 (diff) | |
download | libsigrokdecode-c8233c78da6acb23b74afe271c30355442fdaa5c.tar.gz libsigrokdecode-c8233c78da6acb23b74afe271c30355442fdaa5c.zip |
Prune dead code.
Diffstat (limited to 'type_decoder.c')
-rw-r--r-- | type_decoder.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/type_decoder.c b/type_decoder.c index 6810d91..3e6f17b 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -364,23 +364,9 @@ static PyObject *Decoder_register(PyObject *self, PyObject *args, return py_new_output_id; } -/* TODO: this is just a stub that calls _register() until all PDs - * are changed to use the new register API. */ -static PyObject *Decoder_add(PyObject *self, PyObject *args) -{ - PyObject *py_keywords, *py_new_output_id; - - py_keywords = PyDict_New(); - py_new_output_id = Decoder_register(self, args, py_keywords); - Py_DecRef(py_keywords); - - return py_new_output_id; -} - static PyMethodDef Decoder_methods[] = { {"put", Decoder_put, METH_VARARGS, "Accepts a dictionary with the following keys: startsample, endsample, data"}, - {"add", Decoder_add, METH_VARARGS, "Create a new output stream"}, {"register", (PyCFunction)Decoder_register, METH_VARARGS|METH_KEYWORDS, "Register a new output stream"}, {NULL, NULL, 0, NULL} |