Skip to content

Commit 7463c9e

Browse files
committed
remove unimportant todos
1 parent f8992c9 commit 7463c9e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/browser/ScriptManager.zig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,6 @@ const PendingScript = struct {
477477
// will fail. This assertion exists to catch incorrect assumptions about
478478
// how libcurl works, or about how we've configured it.
479479
std.debug.assert(self.script.source.remote.capacity == 0);
480-
481-
// @newhttp TODO: pre size based on content-length
482-
// @newhttp TODO: max-length enfocement
483480
self.script.source = .{ .remote = self.manager.buffer_pool.get() };
484481
}
485482

@@ -491,7 +488,6 @@ const PendingScript = struct {
491488
// .len = data.len,
492489
// });
493490

494-
// @newhttp TODO: max-length enforcement ??
495491
try self.script.source.remote.appendSlice(self.manager.allocator, data);
496492
}
497493

@@ -704,8 +700,6 @@ const BufferPool = struct {
704700
}
705701

706702
fn release(self: *BufferPool, buffer: ArrayListUnmanaged(u8)) void {
707-
// @newhttp TODO: discard buffers that are larger than some configured max?
708-
709703
// create mutable copy
710704
var b = buffer;
711705

0 commit comments

Comments
 (0)