Remove floating refs

This commit is contained in:
2025-09-07 16:54:57 -07:00
parent b40fcea2c2
commit 2b59fff6a7
3 changed files with 30 additions and 79 deletions

View File

@ -192,7 +192,6 @@ void *refcount_context_unref(RefcountContext *ctx, void *obj);
static inline void refcount_context_unref_as_callback(void *obj, void *ctx) {
refcount_context_unref(ctx, obj);
}
void *refcount_context_float(RefcountContext *ctx, void *obj);
ptrdiff_t refcount_context_garbage_collect(RefcountContext *ctx);
@ -320,15 +319,6 @@ static inline void refcount_unref_as_callback(void *obj) {
refcount_unref(obj);
}
/**
* Same as #refcount_context_float, but only operates on the global context.
* @param obj The object
* @return The input object
*/
static inline void *refcount_float(void *obj) {
return refcount_context_float(refcount_default_context, obj);
}
/**
* Same as #refcount_context_garbage_collect, but only operates on the globa
* context.