Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed May 15, 2011
1 parent b09b1b2 commit e9222e7
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions src/gc/gc_gms.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,19 +430,11 @@ static void gc_gms_str_get_youngest_generation(PARROT_INTERP,
__attribute__nonnull__(1)
__attribute__nonnull__(2);

static void gc_gms_sweep_pmc_cb(PARROT_INTERP, ARGIN(PObj *obj))
__attribute__nonnull__(1)
__attribute__nonnull__(2);

static void gc_gms_sweep_pools(PARROT_INTERP, ARGMOD(MarkSweep_GC *self))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
FUNC_MODIFIES(*self);

static void gc_gms_sweep_string_cb(PARROT_INTERP, ARGIN(PObj *obj))
__attribute__nonnull__(1)
__attribute__nonnull__(2);

static void gc_gms_unblock_GC_mark(PARROT_INTERP)
__attribute__nonnull__(1);

Expand Down Expand Up @@ -600,15 +592,9 @@ static int gen2flags(int gen);
__attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(str))
#define ASSERT_ARGS_gc_gms_sweep_pmc_cb __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(obj))
#define ASSERT_ARGS_gc_gms_sweep_pools __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(self))
#define ASSERT_ARGS_gc_gms_sweep_string_cb __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(obj))
#define ASSERT_ARGS_gc_gms_unblock_GC_mark __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
#define ASSERT_ARGS_gc_gms_unblock_GC_sweep __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
Expand Down Expand Up @@ -1494,24 +1480,6 @@ gc_gms_is_pmc_ptr(PARROT_INTERP, ARGIN_NULLOK(void *ptr))

/*
=item C<static void gc_gms_sweep_pmc_cb(PARROT_INTERP, PObj *obj)>
destroy pmc *obj
=cut
*/

static void
gc_gms_sweep_pmc_cb(PARROT_INTERP, ARGIN(PObj *obj))
{
ASSERT_ARGS(gc_gms_sweep_pmc_cb)
PMC *pmc = (PMC *)obj;
Parrot_pmc_destroy(interp, pmc);
}

/*
=item C<gc_gms_allocate_string_header(PARROT_INTERP, STRING *str)>
=item C<gc_gms_free_string_header(PARROT_INTERP, STRING *s)>
Expand Down Expand Up @@ -1691,28 +1659,6 @@ gc_gms_reallocate_buffer_storage(PARROT_INTERP, ARGIN(Buffer *str), size_t size)
interp->gc_sys->stats.mem_used_last_collect += size;
}

/*
=item C<static void gc_gms_sweep_string_cb(PARROT_INTERP, PObj *obj)>
destroy string *obj
=cut
*/

static void
gc_gms_sweep_string_cb(PARROT_INTERP, ARGIN(PObj *obj))
{
ASSERT_ARGS(gc_gms_sweep_string_cb)
MarkSweep_GC * const self = (MarkSweep_GC *)interp->gc_sys->gc_private;
Buffer * const str = (Buffer *)obj;
/* Compact string pool here. Or get rid of "shared buffers" and just free storage */
if (Buffer_bufstart(str) && !PObj_external_TEST(str))
Parrot_gc_str_free_buffer_storage(interp, &self->string_gc, str);
}


/*
=item C<static void gc_gms_iterate_live_strings(PARROT_INTERP,
Expand Down

0 comments on commit e9222e7

Please sign in to comment.