From f634da331878c96262aa16350d9565c6846c5133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sun, 4 May 2025 13:57:23 +0200 Subject: [PATCH] refactor(TokenKind): remove unused kinds --- notes.org | 2 +- src/tokens.rs | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/notes.org b/notes.org index 0a535bf..e059314 100644 --- a/notes.org +++ b/notes.org @@ -174,7 +174,7 @@ CLOCK: [2025-05-04 dim. 13:38]--[2025-05-04 dim. 13:44] => 0:06 CLOCK: [2025-05-04 dim. 13:45]--[2025-05-04 dim. 13:56] => 0:11 :END: -*** TODO remove token types which are not recognized at all +*** DONE remove token types which are not recognized at all :PROPERTIES: :EFFORT: 10 :END: diff --git a/src/tokens.rs b/src/tokens.rs index 9a88df1..4ecc87d 100644 --- a/src/tokens.rs +++ b/src/tokens.rs @@ -2,16 +2,9 @@ use crate::meta_commands::MetaCommand; #[derive(Debug, Eq, PartialEq)] pub enum TokenData { - /// INSERT Insert, - /// SELECT Select, - /// 0, 1, -21635, 867463 - Integer(i64), - /// Hello World! - String(String), MetaCommand(MetaCommand), - /// No file O.O? EndOfFile, }