[svn:parrot] r47217 - branches/gc_massacre/src/gc

bacek at svn.parrot.org bacek at svn.parrot.org
Mon May 31 12:35:02 UTC 2010


Author: bacek
Date: Mon May 31 12:35:01 2010
New Revision: 47217
URL: https://trac.parrot.org/parrot/changeset/47217

Log:
Remove unused List.prepend

Modified:
   branches/gc_massacre/src/gc/list.c
   branches/gc_massacre/src/gc/list.h

Modified: branches/gc_massacre/src/gc/list.c
==============================================================================
--- branches/gc_massacre/src/gc/list.c	Mon May 31 12:19:31 2010	(r47216)
+++ branches/gc_massacre/src/gc/list.c	Mon May 31 12:35:01 2010	(r47217)
@@ -72,23 +72,6 @@
 
 PARROT_EXPORT
 void
-Parrot_gc_list_prepend(SHIM_INTERP, ARGMOD(Linked_List *list), ARGMOD(List_Item_Header *item))
-{
-    /* First item */
-    if (!list->first) {
-        list->first = list->last = item;
-        item->prev = item->next = NULL;
-    }
-    else {
-        item->prev = NULL;
-        item->next = list->first;
-        list->first = item;
-    }
-    list->count++;
-}
-
-PARROT_EXPORT
-void
 Parrot_gc_list_remove(SHIM_INTERP, ARGMOD(Linked_List *list), ARGMOD(List_Item_Header *item))
 {
     List_Item_Header *next = item->next;

Modified: branches/gc_massacre/src/gc/list.h
==============================================================================
--- branches/gc_massacre/src/gc/list.h	Mon May 31 12:19:31 2010	(r47216)
+++ branches/gc_massacre/src/gc/list.h	Mon May 31 12:35:01 2010	(r47217)
@@ -62,15 +62,6 @@
         FUNC_MODIFIES(*item);
 
 PARROT_EXPORT
-void Parrot_gc_list_prepend(SHIM_INTERP,
-    ARGMOD(Linked_List *list),
-    ARGMOD(List_Item_Header *item))
-        __attribute__nonnull__(2)
-        __attribute__nonnull__(3)
-        FUNC_MODIFIES(*list)
-        FUNC_MODIFIES(*item);
-
-PARROT_EXPORT
 void Parrot_gc_list_remove(SHIM_INTERP,
     ARGMOD(Linked_List *list),
     ARGMOD(List_Item_Header *item))
@@ -86,9 +77,6 @@
 #define ASSERT_ARGS_Parrot_gc_list_append __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(list) \
     , PARROT_ASSERT_ARG(item))
-#define ASSERT_ARGS_Parrot_gc_list_prepend __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
-       PARROT_ASSERT_ARG(list) \
-    , PARROT_ASSERT_ARG(item))
 #define ASSERT_ARGS_Parrot_gc_list_remove __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
        PARROT_ASSERT_ARG(list) \
     , PARROT_ASSERT_ARG(item))


More information about the parrot-commits mailing list