Skip to content

Commit

Permalink
Get rid of useless mark function (#502)
Browse files Browse the repository at this point in the history
If the mark function is a noop, we might as well
just not pass it.

Co-authored-by: Jean Boussier <[email protected]>
  • Loading branch information
casperisfine and byroot authored Sep 19, 2023
1 parent 02feadc commit 4edcb01
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ext/semian/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,6 @@ ms_to_timespec(long ms, struct timespec *ts)
ts->tv_nsec = (ms % 1000) * 1000000;
}

static void
semian_resource_mark(void *ptr)
{
/* noop */
}

static void
semian_resource_free(void *ptr)
{
Expand All @@ -386,7 +380,7 @@ static const rb_data_type_t
semian_resource_type = {
"semian_resource",
{
semian_resource_mark,
NULL,
semian_resource_free,
semian_resource_memsize
},
Expand Down

0 comments on commit 4edcb01

Please sign in to comment.