Skip to content

Commit efa8338

Browse files
committed
Remove a few unused context arguments
1 parent 6d5da24 commit efa8338

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/org/truffleruby/core/exception/ExceptionNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private void initializeNameErrorCopy(RubyNameError self, RubyNameError from) {
127127
private void initializeExceptionCopy(RubyException self, RubyException from) {
128128
Backtrace backtrace = from.backtrace;
129129
if (backtrace != null) {
130-
self.backtrace = backtrace.copy(getContext(), self);
130+
self.backtrace = backtrace.copy(self);
131131
} else {
132132
self.backtrace = null;
133133
}

src/main/java/org/truffleruby/core/exception/ExceptionOperations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static String getMessage(Throwable throwable) {
3737
}
3838

3939
@TruffleBoundary
40-
private static String messageFieldToString(RubyContext context, RubyException exception) {
40+
private static String messageFieldToString(RubyException exception) {
4141
Object message = exception.message;
4242
RubyStringLibrary strings = RubyStringLibrary.getUncached();
4343
if (message == null || message == Nil.INSTANCE) {
@@ -62,7 +62,7 @@ public static String messageToString(RubyContext context, RubyException exceptio
6262
} catch (Throwable e) {
6363
// Fall back to the internal message field
6464
}
65-
return messageFieldToString(context, exception);
65+
return messageFieldToString(exception);
6666
}
6767

6868
public static RubyException createRubyException(RubyContext context, RubyClass rubyClass, Object message,

src/main/java/org/truffleruby/language/backtrace/Backtrace.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private static String getRootName(RootNode root) {
171171

172172
/** Used to copy the backtrace when copying {@code exception}. */
173173
@TruffleBoundary
174-
public Backtrace copy(RubyContext context, RubyException exception) {
174+
public Backtrace copy(RubyException exception) {
175175
Backtrace copy = new Backtrace(location, omitted, javaThrowable);
176176
// A Backtrace is 1-1-1 with a RaiseException and a Ruby exception.
177177
// Copy the RaiseException

0 commit comments

Comments
 (0)