aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-08 22:32:04 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-08 22:32:04 -0700
commitb874d0b387d27efc5f0a78c5391889ecea24db2e (patch)
tree6af1cf2363092192be5176908a82f398c00bb5a5
parent5e366872f659abf116b903e5cece999a04cd018b (diff)
downloadbun-b874d0b387d27efc5f0a78c5391889ecea24db2e.tar.gz
bun-b874d0b387d27efc5f0a78c5391889ecea24db2e.tar.zst
bun-b874d0b387d27efc5f0a78c5391889ecea24db2e.zip
:scissors: dead code
-rw-r--r--src/js_lexer/identifier.zig13
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