]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/dlink.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / dlink.cc
index c2712bbc4250ef31e59bf087d90c870413c42300..1090633d723bac69f8b17ee6322a4dc17eb122f1 100644 (file)
@@ -1,36 +1,16 @@
 /*
- * $Id$
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
+
 #include "squid.h"
 #include "dlink.h"
 
-/* dlink are Mem-pooled */
-#include "MemPool.h"
-
 dlink_list ClientActiveRequests;
 
-MemAllocator *dlink_node_pool = NULL;
-
-dlink_node *
-dlinkNodeNew()
-{
-    if (dlink_node_pool == NULL)
-        dlink_node_pool = memPoolCreate("Dlink list nodes", sizeof(dlink_node));
-
-    /* where should we call delete dlink_node_pool;dlink_node_pool = NULL; */
-    return (dlink_node *)dlink_node_pool->alloc();
-}
-
-/** The node needs to be unlinked FIRST */
-void
-dlinkNodeDelete(dlink_node * m)
-{
-    if (m == NULL)
-        return;
-
-    dlink_node_pool->freeOne(m);
-}
-
 void
 dlinkAdd(void *data, dlink_node * m, dlink_list * list)
 {
@@ -97,3 +77,4 @@ dlinkDelete(dlink_node * m, dlink_list * list)
 
     m->next = m->prev = NULL;
 }
+