]> sigrok.org Git - libsigrok.git/blobdiff - hwdriver.c
sr: remove obsolete sr_dev_inst_get() call
[libsigrok.git] / hwdriver.c
index ff9cc5f8dc58bce17f96cdff2b4a3bdd12b62fab..d1181a2f59dc3c1c8e98c0d769543a03ba6b9232 100644 (file)
@@ -232,21 +232,6 @@ SR_PRIV struct sr_dev_inst *sr_dev_inst_new(int index, int status,
        return sdi;
 }
 
-SR_PRIV struct sr_dev_inst *sr_dev_inst_get(GSList *dev_insts, int dev_index)
-{
-       struct sr_dev_inst *sdi;
-       GSList *l;
-
-       for (l = dev_insts; l; l = l->next) {
-               sdi = (struct sr_dev_inst *)(l->data);
-               if (sdi->index == dev_index)
-                       return sdi;
-       }
-       sr_warn("could not find device index %d instance", dev_index);
-
-       return NULL;
-}
-
 SR_PRIV void sr_dev_inst_free(struct sr_dev_inst *sdi)
 {
        g_free(sdi->priv);