summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2012-03-21 22:38:08 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2012-03-21 23:39:38 +0100
commit6c36501de9d0b91a203d4943b16d0a63e1c98d9e (patch)
tree54d7c11a0eaa30f507a941bf9301517c644c70c9
parent0575fc98b5787d4f207064d3a69f5d3cf6922fc2 (diff)
downloadlibsigrokdecode-6c36501de9d0b91a203d4943b16d0a63e1c98d9e.tar.gz
libsigrokdecode-6c36501de9d0b91a203d4943b16d0a63e1c98d9e.zip
srd: Drop unused inputformats/outputformats entries.
-rw-r--r--decoder.c10
-rw-r--r--sigrokdecode.h6
2 files changed, 0 insertions, 16 deletions
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. */
diff --git a/sigrokdecode.h b/sigrokdecode.h
index 3f2d3c9..ded00bf 100644
--- a/sigrokdecode.h
+++ b/sigrokdecode.h
@@ -116,12 +116,6 @@ struct srd_decoder {
*/
char *license;
- /** TODO */
- GSList *inputformats;
-
- /** TODO */
- GSList *outputformats;
-
/** List of probes required by this decoder. */
GSList *probes;