summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/src/json/ext/Parser.java2
-rw-r--r--java/src/json/ext/Parser.rl2
2 files changed, 0 insertions, 4 deletions
diff --git a/java/src/json/ext/Parser.java b/java/src/json/ext/Parser.java
index 2eddd8f..0058f95 100644
--- a/java/src/json/ext/Parser.java
+++ b/java/src/json/ext/Parser.java
@@ -1608,8 +1608,6 @@ static final int JSON_array_en_main = 1;
"nesting of " + currentNesting + " is too deep");
}
- // this is guaranteed to be a RubyArray due to the earlier
- // allocator test at OptionsReader#getClass
IRubyObject result;
if (parser.arrayClass == getRuntime().getArray()) {
result = RubyArray.newArray(getRuntime());
diff --git a/java/src/json/ext/Parser.rl b/java/src/json/ext/Parser.rl
index 0dbc9c1..6d9d4f9 100644
--- a/java/src/json/ext/Parser.rl
+++ b/java/src/json/ext/Parser.rl
@@ -700,8 +700,6 @@ public class Parser extends RubyObject {
"nesting of " + currentNesting + " is too deep");
}
- // this is guaranteed to be a RubyArray due to the earlier
- // allocator test at OptionsReader#getClass
IRubyObject result;
if (parser.arrayClass == getRuntime().getArray()) {
result = RubyArray.newArray(getRuntime());