X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoder.c;h=02edee22b69aa674dc4039ea1a493dc898b962d2;hp=0aa1c5f8474a11b105983dd36eaf58c65c09d291;hb=6c36501de9d0b91a203d4943b16d0a63e1c98d9e;hpb=0575fc98b5787d4f207064d3a69f5d3cf6922fc2 diff --git a/decoder.c b/decoder.c index 0aa1c5f..02edee2 100644 --- a/decoder.c +++ b/decoder.c @@ -238,10 +238,6 @@ SRD_API int srd_decoder_load(const char *module_name) if (py_attr_as_str(d->py_dec, "license", &(d->license)) != SRD_OK) goto err_out; - /* TODO: Handle inputformats, outputformats. */ - d->inputformats = NULL; - d->outputformats = NULL; - /* Convert class annotation attribute to GSList of **char. */ d->annotations = NULL; if (PyObject_HasAttrString(d->py_dec, "annotations")) { @@ -359,12 +355,6 @@ SRD_API int srd_decoder_unload(struct srd_decoder *dec) g_free(dec->desc); g_free(dec->license); - /* TODO: Free everything in inputformats and outputformats. */ - if (dec->inputformats != NULL) - g_slist_free(dec->inputformats); - if (dec->outputformats != NULL) - g_slist_free(dec->outputformats); - /* The module's Decoder class. */ Py_XDECREF(dec->py_dec); /* The module itself. */