summaryrefslogtreecommitdiff
path: root/src/ninep/events.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninep/events.zig')
-rw-r--r--src/ninep/events.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ninep/events.zig b/src/ninep/events.zig
index 49e852b3..a501d1e2 100644
--- a/src/ninep/events.zig
+++ b/src/ninep/events.zig
@@ -96,13 +96,6 @@ pub const Queue = struct {
}
};
-/// What the next read would answer, which is the size a stat reports: a
-/// client can see there is something waiting without parking on it.
-pub fn pending(q: *const Queue) u64 {
- const record = q.peek() orelse return 0;
- return record.len;
-}
-
/// One record per read; `.again` holds the read until a record arrives.
pub fn readQueue(p: *Pardes, req: Req, q: *Queue) Reply {
const record = q.peek() orelse return .{ .tag = req.tag, .status = .again };