]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
ilist: remove append function since it's not used, but in generic driver and it's...
authornorbert.bizet <norbert.bizet@baculasystems.com>
Mon, 18 Mar 2024 15:22:49 +0000 (11:22 -0400)
committerEric Bollengier <eric@baculasystems.com>
Thu, 21 Mar 2024 16:24:29 +0000 (17:24 +0100)
bacula/src/lib/ilist.c
bacula/src/lib/ilist.h

index a89a3885e2e4afed5bdf815d4e992bdfd828a4aa..cfc38ba1be3130e04ec2c32a9d14cf4600acee9e 100644 (file)
@@ -65,20 +65,13 @@ void ilist::grow_list()
    }
 }
 
-void ilist::append(void *item)
-{
-   grow_list();
-   items[last_item++] = item;
-   num_items++;
-}
-
 /*
  * Put an item at a particular index
  */
 void ilist::put(int index, void *item)
 {
    if (index > last_item) {
-      last_item = index; // FIXME: On alist, last_item is pointing after the last item
+      last_item = index;
    }
    grow_list();
    if (items[index] == NULL) {
index e408e55cd5e1047cd6d6714d1a37bf5f34758782..d5cea8cfde6f8eef77700b2018358676fb98de41 100644 (file)
@@ -50,7 +50,6 @@ public:
    ilist(int num = 100, bool own=true);
    ~ilist();
    void init(int num = 100, bool own=true);
-   void append(void *item);
    void *get(int index);
    bool empty() const;
    int last_index() const { return last_item; };