about summary refs log tree commit diff stats
path: root/src/js/javascript.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-05 03:15:31 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-05 03:15:31 +0200
commit76cb8dee5e2066a7409f53edf74b2d3275ff4a7e (patch)
treeb42ae575d1b94befc005074aa6d12af53c4dfbdc /src/js/javascript.nim
parentecd97e8baf04c34eaf34353f66b136efce17e55d (diff)
downloadchawan-76cb8dee5e2066a7409f53edf74b2d3275ff4a7e.tar.gz
js: remove unused function
Diffstat (limited to 'src/js/javascript.nim')
-rw-r--r--src/js/javascript.nim4
1 files changed, 0 insertions, 4 deletions
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)