From b231546d63396fd6cac381b12b99caf07687e7e3 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Mon, 9 Jan 2012 00:13:03 +0100 Subject: code cleanup --- module_sigrokdecode.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'module_sigrokdecode.c') 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 = { -- cgit v1.2.3-70-g09d2