Skip to content

Commit

Permalink
Removed an unused reference and inlined another.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Dec 18, 2014
1 parent 5a14923 commit 69212f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/main/java/org/jruby/RubyMatchData.java
Expand Up @@ -593,10 +593,8 @@ public IRubyObject initialize_copy(IRubyObject original) {

checkFrozen();

Ruby runtime = getRuntime();
ThreadContext context = runtime.getCurrentContext();
if (!(original instanceof RubyMatchData)) {
throw runtime.newTypeError("wrong argument class");
throw getRuntime().newTypeError("wrong argument class");
}

RubyMatchData origMatchData = (RubyMatchData)original;
Expand Down

0 comments on commit 69212f8

Please sign in to comment.