this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove unused code

-38
-30
src/app.zig
··· 294 294 return null; 295 295 } 296 296 297 - fn contentWidget(self: *App) vxfw.Widget { 298 - return .{ 299 - .userdata = self, 300 - .captureHandler = null, 301 - .eventHandler = null, 302 - .drawFn = App.typeErasedContentDrawFn, 303 - }; 304 - } 305 - 306 - fn typeErasedContentDrawFn(ptr: *anyopaque, ctx: vxfw.DrawContext) Allocator.Error!vxfw.Surface { 307 - _ = ptr; 308 - const text: vxfw.Text = .{ .text = "content" }; 309 - return text.draw(ctx); 310 - } 311 - 312 - fn memberWidget(self: *App) vxfw.Widget { 313 - return .{ 314 - .userdata = self, 315 - .captureHandler = null, 316 - .eventHandler = null, 317 - .drawFn = App.typeErasedMembersDrawFn, 318 - }; 319 - } 320 - 321 - fn typeErasedMembersDrawFn(ptr: *anyopaque, ctx: vxfw.DrawContext) Allocator.Error!vxfw.Surface { 322 - _ = ptr; 323 - const text: vxfw.Text = .{ .text = "members" }; 324 - return text.draw(ctx); 325 - } 326 - 327 297 pub fn connect(self: *App, cfg: irc.Client.Config) !void { 328 298 const client = try self.alloc.create(irc.Client); 329 299 client.* = try irc.Client.init(self.alloc, self, &self.write_queue, cfg);
-8
src/ui.zig
··· 1 - const std = @import("std"); 2 - const vaxis = @import("vaxis"); 3 - 4 - const vxfw = vaxis.vxfw; 5 - 6 - const Allocator = std.mem.Allocator; 7 - 8 - pub const main = struct {};