From ffcbab9d9452a3f33668b09fd1db89ac7f3f9152 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 11 Aug 2018 20:10:18 -0700 Subject: [PATCH] Remove unused files. --- include/refcount_internal.h | 8 -------- src/gc.c | 1 - src/refcount_internal.c | 16 ---------------- 3 files changed, 25 deletions(-) delete mode 100644 include/refcount_internal.h delete mode 100644 src/refcount_internal.c diff --git a/include/refcount_internal.h b/include/refcount_internal.h deleted file mode 100644 index cd9a371..0000000 --- a/include/refcount_internal.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef LIBABACUS_REFCOUNT_INTERNAL_H -#define LIBABACUS_REFCOUNT_INTERNAL_H - -#include "refcount.h" - -void libab_ref_count_changed(libab_ref_count* count); - -#endif diff --git a/src/gc.c b/src/gc.c index da7d3d9..3572885 100644 --- a/src/gc.c +++ b/src/gc.c @@ -3,7 +3,6 @@ #include #include #include -#include "refcount_internal.h" void libab_gc_list_init(libab_gc_list* list) { memset(&list->head_sentinel, 0, sizeof(list->head_sentinel)); diff --git a/src/refcount_internal.c b/src/refcount_internal.c deleted file mode 100644 index 97d383d..0000000 --- a/src/refcount_internal.c +++ /dev/null @@ -1,16 +0,0 @@ -#include "refcount_internal.h" -#include - -void libab_ref_count_changed(libab_ref_count* count) { - if (count->strong == 0) { - count->strong--; - if (count->free_func) { - count->free_func(count->data); - } - } - if (count->weak == 0) { - if(count->prev) count->prev->next = count->next; - if(count->next) count->next->prev = count->prev; - free(count); - } -}