Skip to content

Commit 01dfb7e

Browse files
aardvark179eregon
authored andcommitted
Small tidy up to remove comment and unused profile.
(cherry picked from commit 8577905)
1 parent 9569507 commit 01dfb7e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/truffleruby/cext/CExtNodes.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,11 +1188,9 @@ protected Object executeWithProtect(RubyProc block,
11881188
@CoreMethod(names = "extract_ruby_exception", onSingleton = true, required = 1)
11891189
public abstract static class ExtractRubyException extends CoreMethodArrayArgumentsNode {
11901190

1191-
/** Profiled version of {@link ExceptionOperations#rethrow(Throwable)} */
11921191
@Specialization
11931192
protected Object executeThrow(CapturedException captured,
1194-
@Cached ConditionProfile rubyExceptionProfile,
1195-
@Cached ConditionProfile errorProfile) {
1193+
@Cached ConditionProfile rubyExceptionProfile) {
11961194
final Throwable e = captured.getException();
11971195
if (rubyExceptionProfile.profile(e instanceof RaiseException)) {
11981196
return ((RaiseException) e).getException();

0 commit comments

Comments
 (0)