File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
src/main/java/org/truffleruby/language/methods Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -428,25 +428,6 @@ public InternalMethod unimplemented() {
428
428
capturedBlock );
429
429
}
430
430
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
-
450
431
@ TruffleBoundary
451
432
public boolean isProtectedMethodVisibleTo (RubyClass callerClass ) {
452
433
assert visibility == Visibility .PROTECTED ;
You can’t perform that action at this time.
0 commit comments