From 8983d0c13449cab06dc9e64eb21fd67bc4fceaa8 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 23 Mar 2023 18:40:16 -0700 Subject: [PATCH] Remove ErrorSymbolValue reference I cannot find where this is defined. I'm guessing neither this nor the else branch is ever hit. I only found out when testing VM changes, which had a bug that exposed this. --- lib/racc/grammar.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/racc/grammar.rb b/lib/racc/grammar.rb index 01c4c3df..7159862f 100644 --- a/lib/racc/grammar.rb +++ b/lib/racc/grammar.rb @@ -993,10 +993,6 @@ def initialize(value, dummyp) @to_s = '$end' @serialized = 'false' @string = false - when ErrorSymbolValue - @to_s = 'error' - @serialized = 'Object.new' - @string = false else raise ArgumentError, "unknown symbol value: #{value.class}" end