diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-16 21:53:07 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-16 21:53:07 +0200 |
commit | 6ad61be804056be0e95604bdeac0686d175dd17f (patch) | |
tree | 4b78c4a4cd2f1510176881dcc72bd046c5a5510c /src/local/client.nim | |
parent | c3b6bc8f93c6d35d5e8e9752abe6a736423497e8 (diff) | |
download | chawan-6ad61be804056be0e95604bdeac0686d175dd17f.tar.gz |
client: remove redundant global functions
these are already defined on Window
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index bdb796a7..60910bc8 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -25,7 +25,6 @@ import io/posixstream import io/promise import io/serversocket import io/socketstream -import js/base64 import js/console import js/domexception import js/encoding @@ -360,20 +359,6 @@ proc input(client: Client): EmptyPromise = p.resolve() return p -proc setTimeout(client: Client; handler: JSValue; timeout = 0i32): int32 - {.jsfunc.} = - return client.timeouts.setTimeout(ttTimeout, handler, timeout) - -proc setInterval(client: Client; handler: JSValue; interval = 0i32): int32 - {.jsfunc.} = - return client.timeouts.setTimeout(ttInterval, handler, interval) - -proc clearTimeout(client: Client; id: int32) {.jsfunc.} = - client.timeouts.clearTimeout(id) - -proc clearInterval(client: Client; id: int32) {.jsfunc.} = - client.clearTimeout(id) - let SIGWINCH {.importc, header: "<signal.h>", nodecl.}: cint proc showConsole(client: Client) {.jsfunc.} = @@ -788,13 +773,6 @@ proc jsCollect(client: Client) {.jsfunc.} = proc sleep(client: Client; millis: int) {.jsfunc.} = sleep millis -proc atob(client: Client; data: string): DOMResult[NarrowString] {.jsfunc.} = - return atob(data) - -proc btoa(ctx: JSContext; client: Client; data: JSValue): DOMResult[string] - {.jsfunc.} = - return btoa(ctx, data) - func line(client: Client): LineEdit {.jsfget.} = return client.pager.lineedit |