From ec9364e50077e88a222c24306209be0d776e27f3 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 23 Mar 2023 18:40:16 -0700 Subject: [PATCH] [ruby/racc] 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. https://github.com/ruby/racc/commit/8983d0c134 --- lib/racc/grammar.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/racc/grammar.rb b/lib/racc/grammar.rb index 01c4c3df69..7159862ffb 100644 --- a/lib/racc/grammar.rb +++ b/lib/racc/grammar.rb @@ -993,10 +993,6 @@ module Racc @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