]> sigrok.org Git - libsigrokdecode.git/commitdiff
Prune dead code
authorBert Vermeulen <redacted>
Wed, 13 Nov 2013 23:32:03 +0000 (00:32 +0100)
committerBert Vermeulen <redacted>
Fri, 15 Nov 2013 21:05:54 +0000 (22:05 +0100)
controller.c
libsigrokdecode-internal.h

index d3bcdcb532a86692107457341b050fa7f649cd8d..9f9b7b1820481c8e82e4c5992299b6a8cf370c24 100644 (file)
@@ -1194,29 +1194,4 @@ SRD_PRIV struct srd_pd_callback *srd_pd_output_callback_find(
        return pd_cb;
 }
 
        return pd_cb;
 }
 
-/* This is the backend function to Python sigrokdecode.add() call. */
-/** @private */
-SRD_PRIV int srd_inst_pd_output_add(struct srd_decoder_inst *di,
-                                   int output_type, const char *proto_id)
-{
-       struct srd_pd_output *pdo;
-
-       srd_dbg("Instance %s creating new output type %d for %s.",
-               di->inst_id, output_type, proto_id);
-
-       if (!(pdo = g_try_malloc(sizeof(struct srd_pd_output)))) {
-               srd_err("Failed to g_malloc() struct srd_pd_output.");
-               return -1;
-       }
-
-       /* pdo_id is just a simple index, nothing is deleted from this list anyway. */
-       pdo->pdo_id = g_slist_length(di->pd_output);
-       pdo->output_type = output_type;
-       pdo->di = di;
-       pdo->proto_id = g_strdup(proto_id);
-       di->pd_output = g_slist_append(di->pd_output, pdo);
-
-       return pdo->pdo_id;
-}
-
 /** @} */
 /** @} */
index db256777bcdce3ea0304901c7126bf84cdebe964..6d60910f3b89904f2a313e8b53e98e36240fb211 100644 (file)
@@ -47,8 +47,6 @@ SRD_PRIV void srd_inst_free(struct srd_decoder_inst *di);
 SRD_PRIV void srd_inst_free_all(struct srd_session *sess, GSList *stack);
 SRD_PRIV struct srd_pd_callback *srd_pd_output_callback_find(struct srd_session *sess,
                int output_type);
 SRD_PRIV void srd_inst_free_all(struct srd_session *sess, GSList *stack);
 SRD_PRIV struct srd_pd_callback *srd_pd_output_callback_find(struct srd_session *sess,
                int output_type);
-SRD_PRIV int srd_inst_pd_output_add(struct srd_decoder_inst *di,
-                                   int output_type, const char *output_id);
 
 /*--- exception.c -----------------------------------------------------------*/
 
 
 /*--- exception.c -----------------------------------------------------------*/