about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-14 21:44:21 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-14 21:44:47 +0200
commit6a06e111ebfbb8bbf69f4539863ae2d5d62794f9 (patch)
tree4d091e5df86c61f6e65ed73bcc88ceee8cbaa194 /src
parent0e3d67f31df2c2d53aa0e578439852731e5f5af9 (diff)
downloadchawan-6a06e111ebfbb8bbf69f4539863ae2d5d62794f9.tar.gz
io: remove readablestream
it was never implemented
Diffstat (limited to 'src')
-rw-r--r--src/io/readablestream.nim32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/io/readablestream.nim b/src/io/readablestream.nim
deleted file mode 100644
index 8269f1dc..00000000
--- a/src/io/readablestream.nim
+++ /dev/null
@@ -1,32 +0,0 @@
-#TODO....
-
-type
-  UnderlyingSourceStartCallback = proc(controller: ReadableStreamController):
-    Option[JSValue] # may be undefined!
-  UnderlyingSourcePullCallback = proc(controller: ReadableStreamController):
-    EmptyPromise
-  UnderlyingSourceCancelCallback = proc(reason = none(JSValue)): EmptyPromise
-
-  ReadableStreamType = enum
-    BYOB = "byob"
-
-  UnderlyingSource* = object
-    start*: Option[UnderlyingSourceStartCallback]
-    pull*: Option[UnderlyingSourcePullCallback]
-    cancel*: Option[UnderlyingSourcePullCallback]
-    #TODO mark real name being type
-    ctype*: Option[ReadableStreamType]
-
-  QueuingStrategySize = proc(chunk: JSValue): float64 # unrestricted
-
-  QueuingStrategy* = object
-    highWaterMark*: float64 # unrestricted
-    size*: QueuingStrategySize
-
-  ReadableStream* = object
-    underlyingSource: UnderlyingSource
-
-proc newReadableStream(underlyingSource = none(UnderlyingSource);
-    strategy = none(QueuingStrategySize)): ReadableStream =
-  let this = ReadableStream()
-  discard