summaryrefslogtreecommitdiff
path: root/module_sigrokdecode.c
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2012-01-09 00:13:03 +0100
committerBert Vermeulen <bert@biot.com>2012-01-09 01:43:37 +0100
commitb231546d63396fd6cac381b12b99caf07687e7e3 (patch)
tree0ba53787c7e5eeb8530c2a2971dcd0fc36f06fa4 /module_sigrokdecode.c
parentf9a3947a7a8d884de6c55693b216f89b1d27d979 (diff)
downloadlibsigrokdecode-b231546d63396fd6cac381b12b99caf07687e7e3.tar.gz
libsigrokdecode-b231546d63396fd6cac381b12b99caf07687e7e3.zip
code cleanup
Diffstat (limited to 'module_sigrokdecode.c')
-rw-r--r--module_sigrokdecode.c13
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 = {