Skip to content

Commit 13ceb5e

Browse files
committed
computer: Remove the readRange RPC method
1 parent d11df13 commit 13ceb5e

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

packages/computer/src/stub.test.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ describe("WorkspaceStub", () => {
215215
});
216216
});
217217

218-
it("fs.readRange forwards bounded byte reads", async () => {
219-
await withStub(async (ws) => {
220-
const stub = ws.stub();
221-
await stub.fs.writeFile("/bin", new Uint8Array([1, 2, 3, 4, 5]));
222-
expect(Array.from(await stub.fs.readRange("/bin", 1, 3))).toEqual([2, 3, 4]);
223-
});
224-
});
225-
226218
it("fs.readdir forwards bounded-read options", async () => {
227219
await withStub(async (ws) => {
228220
const stub = ws.stub();

packages/computer/src/stub.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,6 @@ export class WorkspaceFilesystemStub extends RpcTarget {
119119
);
120120
}
121121

122-
readRange(path: string, offset: number, length: number): Promise<Uint8Array> {
123-
return withSpan(
124-
this.#ws.observer,
125-
"workspace.fs.readRange",
126-
{ "workspace.fs.path": path, "workspace.fs.offset": offset, "workspace.fs.length": length },
127-
() => this.#ws.fs.readRange(path, offset, length),
128-
);
129-
}
130-
131122
exists(path: string): Promise<boolean> {
132123
return withSpan(
133124
this.#ws.observer,

0 commit comments

Comments
 (0)