Remove unused files.
This commit is contained in:
parent
8847643c2e
commit
ffcbab9d94
|
@ -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
|
1
src/gc.c
1
src/gc.c
|
@ -3,7 +3,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <memory.h>
|
||||
#include "refcount_internal.h"
|
||||
|
||||
void libab_gc_list_init(libab_gc_list* list) {
|
||||
memset(&list->head_sentinel, 0, sizeof(list->head_sentinel));
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
#include "refcount_internal.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user