Skip to content

Commit d0930a9

Browse files
authored
Remove no-op set_cycle_flag function (#1061)
1 parent a72567a commit d0930a9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

quickjs.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5466,11 +5466,6 @@ static force_inline JSShapeProperty *find_own_property(JSProperty **ppr,
54665466
return NULL;
54675467
}
54685468

5469-
/* indicate that the object may be part of a function prototype cycle */
5470-
static void set_cycle_flag(JSContext *ctx, JSValueConst obj)
5471-
{
5472-
}
5473-
54745469
static void free_var_ref(JSRuntime *rt, JSVarRef *var_ref)
54755470
{
54765471
if (var_ref) {
@@ -15995,8 +15990,6 @@ static JSValue js_instantiate_prototype(JSContext *ctx, JSObject *p, JSAtom atom
1599515990
obj = JS_NewObject(ctx);
1599615991
if (JS_IsException(obj))
1599715992
return JS_EXCEPTION;
15998-
set_cycle_flag(ctx, obj);
15999-
set_cycle_flag(ctx, this_val);
1600015993
ret = JS_DefinePropertyValue(ctx, obj, JS_ATOM_constructor,
1600115994
js_dup(this_val),
1600215995
JS_PROP_WRITABLE | JS_PROP_CONFIGURABLE);
@@ -16146,8 +16139,6 @@ static int js_op_define_class(JSContext *ctx, JSValue *sp,
1614616139
if (JS_DefinePropertyValue(ctx, ctor, JS_ATOM_prototype,
1614716140
js_dup(proto), JS_PROP_THROW) < 0)
1614816141
goto fail;
16149-
set_cycle_flag(ctx, ctor);
16150-
set_cycle_flag(ctx, proto);
1615116142

1615216143
JS_FreeValue(ctx, parent_proto);
1615316144
JS_FreeValue(ctx, parent_class);
@@ -37622,8 +37613,6 @@ static void JS_SetConstructor2(JSContext *ctx,
3762237613
js_dup(proto), proto_flags);
3762337614
JS_DefinePropertyValue(ctx, proto, JS_ATOM_constructor,
3762437615
js_dup(func_obj), ctor_flags);
37625-
set_cycle_flag(ctx, func_obj);
37626-
set_cycle_flag(ctx, proto);
3762737616
}
3762837617

3762937618
void JS_SetConstructor(JSContext *ctx, JSValueConst func_obj,

0 commit comments

Comments
 (0)