From b874d0b387d27efc5f0a78c5391889ecea24db2e Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 8 May 2023 22:32:04 -0700 Subject: :scissors: dead code --- src/js_lexer/identifier.zig | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src') diff --git a/src/js_lexer/identifier.zig b/src/js_lexer/identifier.zig index 4f011fcf3..4a48b5d17 100644 --- a/src/js_lexer/identifier.zig +++ b/src/js_lexer/identifier.zig @@ -25,19 +25,6 @@ pub const Bitset = struct { )); } - pub fn isIdentifier(str: []const u8) bool { - if (str.len == 0) - return false; - var iter = std.unicode.Utf8Iterator{ .bytes = str, .i = 0 }; - if (!isIdentifierStart(iter.nextCodepoint() orelse return false)) return false; - - while (iter.nextCodepoint()) |i| { - if (!isIdentifierPart(i)) return false; - } - - return true; - } - pub fn isIdentifierPart(codepoint: i32) bool { return codepoint >= (comptime id_end_range[0]) and codepoint <= (comptime id_end_range[1]) and -- cgit v1.2.3