diff options
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 |