Removing unused tokens.

mess
Karchnu 2020-12-18 01:32:25 +01:00
parent 4f6891c4ab
commit bf6aa3ecf6
1 changed files with 0 additions and 15 deletions

View File

@ -19,11 +19,6 @@ pub const Token = struct {
.{ "true", .Keyword_true }, .{ "true", .Keyword_true },
.{ "undefined", .Keyword_undefined }, .{ "undefined", .Keyword_undefined },
// .{ "text", .Keyword_text },
// .{ "pixel-size", .Keyword_pixel_size },
// .{ "family", .Keyword_family },
// .{ "height", .Keyword_height },
}); });
pub fn getKeyword(bytes: []const u8) ?Id { pub fn getKeyword(bytes: []const u8) ?Id {
@ -108,11 +103,6 @@ pub const Token = struct {
Keyword_true, Keyword_true,
Keyword_undefined, Keyword_undefined,
// Keyword_text,
// Keyword_pixel_size,
// Keyword_family,
// Keyword_height,
pub fn symbol(id: Id) []const u8 { pub fn symbol(id: Id) []const u8 {
return switch (id) { return switch (id) {
.Invalid => "Invalid", .Invalid => "Invalid",
@ -193,11 +183,6 @@ pub const Token = struct {
.Keyword_true => "true", .Keyword_true => "true",
.Keyword_undefined => "undefined", .Keyword_undefined => "undefined",
// .Keyword_text => "text",
// .Keyword_pixel_size => "pixel-size",
// .Keyword_family => "family",
// .Keyword_height => "height",
}; };
} }
}; };