diff options
author | Bert Vermeulen <bert@biot.com> | 2012-01-09 00:13:03 +0100 |
---|---|---|
committer | Bert Vermeulen <bert@biot.com> | 2012-01-09 01:43:37 +0100 |
commit | b231546d63396fd6cac381b12b99caf07687e7e3 (patch) | |
tree | 0ba53787c7e5eeb8530c2a2971dcd0fc36f06fa4 /module_sigrokdecode.c | |
parent | f9a3947a7a8d884de6c55693b216f89b1d27d979 (diff) | |
download | libsigrokdecode-b231546d63396fd6cac381b12b99caf07687e7e3.tar.gz libsigrokdecode-b231546d63396fd6cac381b12b99caf07687e7e3.zip |
code cleanup
Diffstat (limited to 'module_sigrokdecode.c')
-rw-r--r-- | module_sigrokdecode.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c index 69bd17e..720bfd3 100644 --- a/module_sigrokdecode.c +++ b/module_sigrokdecode.c @@ -79,16 +79,6 @@ static int convert_pyobj(struct srd_decoder_instance *di, PyObject *obj, return SRD_OK; } -/* TODO: not used, doesn't work actually */ -static PyObject *Decoder_init(PyObject *self, PyObject *args) -{ - (void)self; - (void)args; - printf("init Decoder object %p\n", self); - - Py_RETURN_NONE; -} - static PyObject *Decoder_put(PyObject *self, PyObject *args) { GSList *l; @@ -158,8 +148,6 @@ static PyObject *Decoder_add(PyObject *self, PyObject *args) if (!(di = get_di_by_decobject(self))) return NULL; - printf("output_new di %s\n", di->decoder->name); - if (!PyArg_ParseTuple(args, "is", &output_type, &protocol_id)) return NULL; @@ -192,7 +180,6 @@ static PyTypeObject srd_Decoder_type = { .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, .tp_doc = "Sigrok Decoder object", .tp_methods = Decoder_methods, - .tp_init = (initproc) Decoder_init, }; static struct PyModuleDef sigrokdecode_module = { |