diff options
author | 2023-05-08 22:32:04 -0700 | |
---|---|---|
committer | 2023-05-08 22:32:04 -0700 | |
commit | b874d0b387d27efc5f0a78c5391889ecea24db2e (patch) | |
tree | 6af1cf2363092192be5176908a82f398c00bb5a5 /src | |
parent | 5e366872f659abf116b903e5cece999a04cd018b (diff) | |
download | bun-b874d0b387d27efc5f0a78c5391889ecea24db2e.tar.gz bun-b874d0b387d27efc5f0a78c5391889ecea24db2e.tar.zst bun-b874d0b387d27efc5f0a78c5391889ecea24db2e.zip |
:scissors: dead code
Diffstat (limited to 'src')
-rw-r--r-- | src/js_lexer/identifier.zig | 13 |
1 files changed, 0 insertions, 13 deletions
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 |