diff options
author | bptato <nincsnevem662@gmail.com> | 2023-06-09 16:48:20 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-09 16:49:24 +0200 |
commit | c20572d3d3dce8bb8ea0fea0d8af9f9d5ea6c80f (patch) | |
tree | 5deefeee5697a5ae0176bbdf8d1b0406529dff21 /src/js | |
parent | e8fa2217df7bacc58e88737f21752bbdf0f5562a (diff) | |
download | chawan-c20572d3d3dce8bb8ea0fea0d8af9f9d5ea6c80f.tar.gz |
Simplify request.json, remove unused bindings
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/javascript.nim | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim index 17bc555a..4de01aa9 100644 --- a/src/js/javascript.nim +++ b/src/js/javascript.nim @@ -1698,7 +1698,6 @@ type macro registerType*(ctx: typed, t: typed, parent: JSClassID = 0, asglobal = false, nointerface = false, name: static string = "", extra_getset: static openarray[TabGetSet] = [], - extra_funcs: static openarray[TabFunc] = [], namespace: JSValue = JS_NULL): JSClassID = result = newStmtList() let tname = t.strVal # the nim type's name. @@ -1797,14 +1796,6 @@ macro registerType*(ctx: typed, t: typed, parent: JSClassID = 0, asglobal = let m = x.magic tabList.add(quote do: JS_CGETSET_MAGIC_DEF(`k`, `g`, `s`, `m`)) - for x in extra_funcs: - #TODO TODO TODO ditto. wtf - if repr(x) != "" and repr(x) != "[]": - let name = x.name - let fun = x.fun - tabList.add(quote do: - JS_CFUNC_DEF(`name`, 0, (`fun`))) - if ctorFun != nil: sctr = ctorFun result.add(ctorImpl) |