summaryrefslogtreecommitdiff
path: root/module_sigrokdecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'module_sigrokdecode.c')
-rw-r--r--module_sigrokdecode.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c
index 17563c1..a0d9610 100644
--- a/module_sigrokdecode.c
+++ b/module_sigrokdecode.c
@@ -23,8 +23,6 @@
/** @cond PRIVATE */
-SRD_PRIV PyObject *srd_logic_type = NULL;
-
/*
* When initialized, a reference to this module inside the Python interpreter
* lives here.
@@ -43,7 +41,7 @@ static struct PyModuleDef sigrokdecode_module = {
/** @cond PRIVATE */
PyMODINIT_FUNC PyInit_sigrokdecode(void)
{
- PyObject *mod, *Decoder_type, *logic_type;
+ PyObject *mod, *Decoder_type;
mod = PyModule_Create(&sigrokdecode_module);
if (!mod)
@@ -55,12 +53,6 @@ PyMODINIT_FUNC PyInit_sigrokdecode(void)
if (PyModule_AddObject(mod, "Decoder", Decoder_type) < 0)
goto err_out;
- logic_type = srd_logic_type_new();
- if (!logic_type)
- goto err_out;
- if (PyModule_AddObject(mod, "srd_logic", logic_type) < 0)
- goto err_out;
-
/* Expose output types as symbols in the sigrokdecode module */
if (PyModule_AddIntConstant(mod, "OUTPUT_ANN", SRD_OUTPUT_ANN) < 0)
goto err_out;
@@ -74,7 +66,6 @@ PyMODINIT_FUNC PyInit_sigrokdecode(void)
if (PyModule_AddIntConstant(mod, "SRD_CONF_SAMPLERATE", SRD_CONF_SAMPLERATE) < 0)
goto err_out;
- srd_logic_type = logic_type;
mod_sigrokdecode = mod;
return mod;