From ddd51b1213e0761e482f0f42ba9a95d9969cc5a3 Mon Sep 17 00:00:00 2001 From: ydah <13041216+ydah@users.noreply.github.com> Date: Mon, 23 Oct 2023 20:44:19 +0900 Subject: [PATCH] Remove unused method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ❯ find ./ -type f -print | xargs grep 'create_token' .//lib/lrama/grammar.rb: def create_token(type, s_value, line, column) ``` --- lib/lrama/grammar.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/lrama/grammar.rb b/lib/lrama/grammar.rb index 91685530..9244d9bb 100644 --- a/lib/lrama/grammar.rb +++ b/lib/lrama/grammar.rb @@ -482,14 +482,6 @@ def extract_references end end - def create_token(type, s_value, line, column) - t = Token.new(type: type, s_value: s_value) - t.line = line - t.column = column - - return t - end - private def find_nterm_by_id!(id)