]> git.proxmox.com Git - pmg-log-tracker.git/commitdiff
remove unused code
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Sep 2017 06:13:19 +0000 (08:13 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Sep 2017 06:13:19 +0000 (08:13 +0200)
pmg-log-tracker.c

index 3e0f92bec9a95881121fca24d0f78ad27630311a..d50206fc0fc6ff4e6a6fcc8d3d1ffd9ffdd980c3 100644 (file)
@@ -218,7 +218,6 @@ struct _FEntry {
 
 // Prototypes
 void      debug_error (char *msg, const char *line);
-SList    *slist_remove (SList *list, gpointer data);
 
 EPool    *epool_init (EPool *ep);
 void      epool_free (EPool *ep);
@@ -326,31 +325,6 @@ debug_error (char *msg, const char *line)
 #endif
 }
 
-SList *
-slist_remove (SList *list, gpointer data)
-{
-  SList *p = NULL;
-  SList *l = list;
-
-  while (l) {
-    if (l->data == data) {
-      if (p)
-       p->next = l->next;
-      if (list == l)
-       list = list->next;
-
-      l->next = NULL;
-
-      break;
-    }
-
-    p = l;
-    l = l->next;
-  }
-
-  return list;
-}
-
 EPool *
 epool_init (EPool *ep)
 {