From d2129a6e2c6348ee9630c5b5918fbcfadf4411fe Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:02:30 -0300 Subject: drawing: dead code goes: colors.carryTheme and Motion.speed (no caller anywhere), animation.progress (only its own tests called it), Layer.pointAt (never called), Glide.kick (one caller, the line now), a stale first column header in the frame dump, panes.zig's unused vaxis import Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/glide.zig | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/glide.zig') diff --git a/src/glide.zig b/src/glide.zig index 1d128dd0..1605b2d3 100644 --- a/src/glide.zig +++ b/src/glide.zig @@ -106,11 +106,6 @@ pub const Glide = struct { return pardes.animation.Follow.pace(motion, @floatFromInt(glide.body_h), 5e-3); } - /// An input: the core's rows moved by `rows` (down positive). - pub fn kick(glide: *Glide, rows: f32, now_ns: u64, motion: pardes.animation.Motion) void { - glide.follow.kick(rows, now_ns, glide.pace(motion)); - } - pub fn advance(glide: *Glide, now_ns: u64, motion: pardes.animation.Motion) void { glide.follow.advance(now_ns, glide.pace(motion)); } @@ -191,7 +186,8 @@ pub const Glide = struct { const dropped = if (far) other_n.* else @min(other_n.*, shift); std.mem.copyForwards(pardes.Cell, other.*[0 .. @as(usize, other_n.* - dropped) * w], other.*[@as(usize, dropped) * w ..][0 .. @as(usize, other_n.* - dropped) * w]); other_n.* -= dropped; - glide.kick(@as(f32, @floatFromInt(shift)) * @as(f32, @floatFromInt(glide.dir)), glide.now_ns, glide.motion); + // An input: the core's rows moved by as many (down positive). + glide.follow.kick(@as(f32, @floatFromInt(shift)) * @as(f32, @floatFromInt(glide.dir)), glide.now_ns, glide.pace(glide.motion)); } /// Finds the text whose view moved since the last loop step, however -- cgit v1.3