Skip to content

Commit

Permalink
remove unused decls
Browse files Browse the repository at this point in the history
  • Loading branch information
psnszsn committed Apr 26, 2024
1 parent de8b9f7 commit a5ea6df
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion apps/bar/bar.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn main() !void {
children[2] = app.layout.add(.{ .type = .button });
app.layout.set(flex, .children, children);

_ = try app.new_window(.wlr_layer_surface, flex);
_ = try app.new_surface(.wlr_layer_surface, flex);

try app.client.recvEvents();
}
Expand Down
2 changes: 0 additions & 2 deletions src/client.zig
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,6 @@ pub const Client = struct {
self.objects.items(item)[@intFromEnum(idx)] = value;
}

const prx = @import("proxy.zig");

pub fn request(
self: *Client,
idx: anytype,
Expand Down
3 changes: 0 additions & 3 deletions toolkit/App.zig
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ fn pointer_listener(client: *wlnd.Client, _: wl.Pointer, _event: wl.Pointer.Even
const std = @import("std");

const App = @This();
const PaintCtx = @import("paint.zig").PaintCtxU32;
const Point = @import("paint/Point.zig");
const Rect = @import("paint/Rect.zig");
const Size = @import("paint/Size.zig");
const font = @import("font/bdf.zig");
const Event = @import("event.zig").Event;
Expand All @@ -231,4 +229,3 @@ const wl = wlnd.wl;
const wp = wlnd.wp;
const xdg = wlnd.xdg;
const zwlr = wlnd.zwlr;
const Buffer = wlnd.shm.Buffer;
5 changes: 0 additions & 5 deletions toolkit/Surface.zig
Original file line number Diff line number Diff line change
Expand Up @@ -320,19 +320,14 @@ const std = @import("std");

const App = @import("App.zig");
const PaintCtx = @import("paint.zig").PaintCtxU32;
const Point = @import("paint/Point.zig");
const Rect = @import("paint/Rect.zig");
const Size = @import("paint/Size.zig");
const font = @import("font/bdf.zig");
const Event = @import("event.zig").Event;

const w = @import("widget.zig");
const Layout = w.Layout;
const WidgetIdx = w.WidgetIdx;

const wlnd = @import("wayland");
const wl = wlnd.wl;
const wp = wlnd.wp;
const xdg = wlnd.xdg;
const zwlr = wlnd.zwlr;
const Buffer = wlnd.shm.Buffer;
Expand Down
1 change: 0 additions & 1 deletion toolkit/paint/color.zig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// const Color = @This();
const std = @import("std");

pub const ColorS = packed struct(u32) {
b: u8,
Expand Down
1 change: 0 additions & 1 deletion toolkit/widget.zig
Original file line number Diff line number Diff line change
Expand Up @@ -374,5 +374,4 @@ const std = @import("std");
const PaintCtx = @import("paint.zig").PaintCtxU32;
const Rect = @import("paint/Rect.zig");
const Size = @import("paint/Size.zig");
const Point = @import("paint/Point.zig");
const Event = @import("event.zig").Event;

0 comments on commit a5ea6df

Please sign in to comment.