diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-04-23 00:06:51 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 10:06:51 -0400 |
commit | 8bcfc03d71cbd2cfd7ab68035ec0968d9f93b5b8 (patch) | |
tree | e1769ca51d2afde57ae18eb25b7a91388fcbf00a /cli/js/web/streams/transform-stream-default-controller.ts | |
parent | b270d6c8d090669601465f8c9c94512d6c6a07d4 (diff) |
Rewrite streams (#4842)
Diffstat (limited to 'cli/js/web/streams/transform-stream-default-controller.ts')
-rw-r--r-- | cli/js/web/streams/transform-stream-default-controller.ts | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/cli/js/web/streams/transform-stream-default-controller.ts b/cli/js/web/streams/transform-stream-default-controller.ts deleted file mode 100644 index 24a8d08fd..000000000 --- a/cli/js/web/streams/transform-stream-default-controller.ts +++ /dev/null @@ -1,58 +0,0 @@ -// TODO reenable this code when we enable writableStreams and transport types -// // Forked from https://github.com/stardazed/sd-streams/tree/8928cf04b035fd02fb1340b7eb541c76be37e546 -// // Copyright (c) 2018-Present by Arthur Langereis - @zenmumbler MIT - -// /** -// * streams/transform-stream-default-controller - TransformStreamDefaultController class implementation -// * Part of Stardazed -// * (c) 2018-Present by Arthur Langereis - @zenmumbler -// * https://github.com/stardazed/sd-streams -// */ - -// import * as rs from "./readable-internals.ts"; -// import * as ts from "./transform-internals.ts"; -// import { ErrorResult } from "./shared-internals.ts"; - -// export class TransformStreamDefaultController<InputType, OutputType> -// implements ts.TransformStreamDefaultController<InputType, OutputType> { -// [ts.controlledTransformStream_]: ts.TransformStream<InputType, OutputType>; -// [ts.flushAlgorithm_]: ts.FlushAlgorithm; -// [ts.transformAlgorithm_]: ts.TransformAlgorithm<InputType>; - -// constructor() { -// throw new TypeError(); -// } - -// get desiredSize(): number | null { -// if (!ts.isTransformStreamDefaultController(this)) { -// throw new TypeError(); -// } -// const readableController = this[ts.controlledTransformStream_][ -// ts.readable_ -// ][rs.readableStreamController_] as rs.SDReadableStreamDefaultController< -// OutputType -// >; -// return rs.readableStreamDefaultControllerGetDesiredSize(readableController); -// } - -// enqueue(chunk: OutputType): void { -// if (!ts.isTransformStreamDefaultController(this)) { -// throw new TypeError(); -// } -// ts.transformStreamDefaultControllerEnqueue(this, chunk); -// } - -// error(reason: ErrorResult): void { -// if (!ts.isTransformStreamDefaultController(this)) { -// throw new TypeError(); -// } -// ts.transformStreamDefaultControllerError(this, reason); -// } - -// terminate(): void { -// if (!ts.isTransformStreamDefaultController(this)) { -// throw new TypeError(); -// } -// ts.transformStreamDefaultControllerTerminate(this); -// } -// } |