From 5718dd5f6b4e9b8df55e302610ff72dc0e9f67aa Mon Sep 17 00:00:00 2001 From: namedkitten Date: Fri, 10 Jul 2020 12:14:18 +0100 Subject: [PATCH] remove unrequired function --- src/widgets/battery/battery.zig | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/widgets/battery/battery.zig b/src/widgets/battery/battery.zig index e5174f5..09992df 100644 --- a/src/widgets/battery/battery.zig +++ b/src/widgets/battery/battery.zig @@ -5,16 +5,6 @@ const fs = std.fs; const cwd = fs.cwd; const colour = @import("../../formatting/colour.zig").colour; -pub fn compare_path(allocator: *std.mem.Allocator, path: []const u8, start_path: []const u8, required_filename: []const u8) !bool { - if (path.len == start_path.len + 1 + required_filename.len) { - var full_path = try std.fmt.allocPrint(allocator, "{}/{}", .{ start_path, required_filename }); - defer allocator.free(full_path); - return std.mem.eql(u8, path, full_path); - } - - return false; -} - pub const PowerPaths = struct { status_path: []const u8 = "", power_now_path: []const u8 = "",