diff --git a/scripts/ArabicShaping.zig b/scripts/ArabicShaping.zig index 657e3c9644f69a059b32a8ec2aa2e011a4b73625..8f58aa5a9bafeb0b3f9059295e65d2012be07e25 100644 --- a/scripts/ArabicShaping.zig +++ b/scripts/ArabicShaping.zig @@ -147,9 +147,6 @@ pub usingnamespace common.Main(struct { const g = std.mem.trim(u8, it.next().?, " "); const g2 = try std.mem.replaceOwned(u8, alloc, g, " ", "_"); - try common.stringToEnum(@import("../src/lib.zig").arabic_shaping.Joining.Type, t); - try common.stringToEnum(@import("../src/lib.zig").arabic_shaping.Joining.Group, g2); - try writer.print(" .{{ .codepoint = 0x{s}, .schematic_name = \"{s}\", .joining_type = .{s}, .joining_group = .{s} }},\n", .{ c, n, t, g2 }); return true; } diff --git a/scripts/_common.zig b/scripts/_common.zig index 6629a1f03f163a5e68af55034d8cf9df6b06847a..8911f578d6b64b2ba60f4639d6f2f3dd4de40f02 100644 --- a/scripts/_common.zig +++ b/scripts/_common.zig @@ -79,12 +79,6 @@ pub fn Main(comptime T: type) type { }; } -pub fn stringToEnum(comptime T: type, str: []const u8) void { - if (std.meta.stringToEnum(T, str)) |_| {} else { - std.log.warn("{s} is not part of the type {s}", .{ str, @typeName(T) }); - } -} - pub fn nullify(input: []const u8) ?[]const u8 { return if (input.len == 0) null else input; }