From 2e6155f3452ede7425e119a15c0efd164e9afbd6 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:51:06 -0300 Subject: replica: nowNs is FrameStats.nowNs by name, not a wrapper, and a test's dead variable goes Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/replica.zig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/replica.zig b/src/replica.zig index 0adadb7e..990efb9b 100644 --- a/src/replica.zig +++ b/src/replica.zig @@ -128,9 +128,7 @@ const Stepping = struct { } }; -fn nowNs() u64 { - return pardes.FrameStats.nowNs(); -} +const nowNs = pardes.FrameStats.nowNs; /// The `p`th percentile of `samples` (sorted here); 100 is the worst. fn pctOf(samples: []u64, p: usize) u64 { @@ -3513,7 +3511,6 @@ test "pardes's own keys over a terminal's history apply at once: its view moves try std.testing.expectEqual(sent.items.len, r.applied); const here = r.core().panes[shell].?; try std.testing.expect(terminal.viewOf(here) != null); - const scrolled = terminal.viewOf(here); // The shell prints while they wait: its unit, then its delta, which // sets the view the authority's (at the bottom still): what was applied // goes on top of it again. @@ -3543,7 +3540,6 @@ test "pardes's own keys over a terminal's history apply at once: its view moves try std.testing.expectEqual(digestOf(a), r.digest()); try std.testing.expect(terminal.viewOf(a.core.panes[shell].?) != null); try std.testing.expectEqual(terminal.viewOf(a.core.panes[shell].?), terminal.viewOf(r.core().panes[shell].?)); - _ = scrolled; // A rollback with nothing confirmed on top puts the view back: one more // key up, and another's unit first. try sent.append(gpa, try gpa.dupe(u8, try r.input(.{ .key = .{ .cp = 'u', .ctrl = true } }))); -- cgit v1.3