refactor: remove unused error return in Plane.put_yx and Plane.cursor_move_yx

This commit is contained in:
CJ van den Berg 2026-01-13 16:19:47 +01:00
parent 52dfc1e706
commit 2d5288aa6f
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
16 changed files with 46 additions and 46 deletions

View file

@ -201,18 +201,18 @@ fn smooth_bar_at(plane: *Plane, pos_: u32, size_: u32) !void {
const blk = @mod(pos, eighths_c);
const b = eighths_b[blk];
plane.erase();
plane.cursor_move_yx(pos_y, 0) catch return;
plane.cursor_move_yx(pos_y, 0);
_ = try plane.putstr(@ptrCast(b));
size -= eighths_c -| blk;
while (size >= 8) {
pos_y += 1;
size -= 8;
plane.cursor_move_yx(pos_y, 0) catch return;
plane.cursor_move_yx(pos_y, 0);
_ = try plane.putstr(@ptrCast(eighths_b[0]));
}
if (size > 0) {
pos_y += 1;
plane.cursor_move_yx(pos_y, 0) catch return;
plane.cursor_move_yx(pos_y, 0);
const t = eighths_t[size];
_ = try plane.putstr(@ptrCast(t));
}