summaryrefslogtreecommitdiff
path: root/src/layout.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.zig')
-rw-r--r--src/layout.zig11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/layout.zig b/src/layout.zig
index 46db6439..9c600cd7 100644
--- a/src/layout.zig
+++ b/src/layout.zig
@@ -4,8 +4,6 @@ const tagline = @import("tagline.zig");
const dump = @import("dump.zig");
const config = @import("config.zig");
const panes = @import("panes.zig");
-const animation = @import("animation.zig");
-const Box = animation.Box;
const Pardes = pardes.Pardes;
const Pane = pardes.Pane;
pub const Rect = struct { x: u16 = 0, y: u16 = 0, w: u16 = 0, h: u16 = 0 };
@@ -1167,15 +1165,6 @@ fn collapseGroup(p: *Pardes, c: usize, start: usize, end: usize) void {
compute(p);
}
-pub fn panelBox(rect: Rect) Box {
- return .{
- .x = @floatFromInt(rect.x),
- .y = @floatFromInt(rect.y),
- .w = @floatFromInt(rect.w),
- .h = @floatFromInt(rect.h),
- };
-}
-
pub fn columnBoundary(width: u16, prefix: u128, total: u128) u16 {
if (total == 0) return 0;
const pixels = (@as(u128, width) * prefix + total / 2) / total;