summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:51:06 -0300
committerGabriel Schneider <[email protected]>2026-11-05 09:54:56 -0300
commit2e6155f3452ede7425e119a15c0efd164e9afbd6 (patch)
tree7d6f49042c5f465cee55ef1524f6af4996e5099f /src
parent07856e29b62cd4d526e62ad62ee2a364fee509ab (diff)
downloadpardes-2e6155f3452ede7425e119a15c0efd164e9afbd6.tar.gz
pardes-2e6155f3452ede7425e119a15c0efd164e9afbd6.zip
replica: nowNs is FrameStats.nowNs by name, not a wrapper, and a test's dead variable goes
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src')
-rw-r--r--src/replica.zig6
1 files changed, 1 insertions, 5 deletions
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 } })));