From 76cb8dee5e2066a7409f53edf74b2d3275ff4a7e Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 5 Jul 2023 03:15:31 +0200 Subject: js: remove unused function --- src/js/javascript.nim | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/js/javascript.nim') diff --git a/src/js/javascript.nim b/src/js/javascript.nim index 3b1661d2..48d82954 100644 --- a/src/js/javascript.nim +++ b/src/js/javascript.nim @@ -316,10 +316,6 @@ func isInstanceOf*(ctx: JSContext, val: JSValue, class: static string): bool = break return found -func isPlatformObject(ctx: JSContext, val: JSValue): bool = - let classid = JS_GetClassID(val) - return classid in ctx.getOpaque().parents - proc setProperty*(ctx: JSContext, val: JSValue, name: string, prop: JSValue) = if JS_SetPropertyStr(ctx, val, cstring(name), prop) <= 0: raise newException(Defect, "Failed to set property string: " & name) -- cgit 1.4.1-2-gfad0