Skip to content

Commit 1ea6310

Browse files
committed
Remove dead code
1 parent d12fd46 commit 1ea6310

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/main/java/org/truffleruby/language/methods/InternalMethod.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -428,25 +428,6 @@ public InternalMethod unimplemented() {
428428
capturedBlock);
429429
}
430430

431-
@TruffleBoundary
432-
public boolean isVisibleTo(RubyClass callerClass) {
433-
switch (visibility) {
434-
case PUBLIC:
435-
return true;
436-
437-
case PROTECTED:
438-
return isProtectedMethodVisibleTo(callerClass);
439-
440-
case PRIVATE:
441-
// A private method may only be called with an implicit receiver,
442-
// in which case the visibility must not be checked.
443-
return false;
444-
445-
default:
446-
throw new UnsupportedOperationException(visibility.name());
447-
}
448-
}
449-
450431
@TruffleBoundary
451432
public boolean isProtectedMethodVisibleTo(RubyClass callerClass) {
452433
assert visibility == Visibility.PROTECTED;

0 commit comments

Comments
 (0)