@@ -906,31 +906,12 @@ class ExtensionMethod extends Method {
906906}
907907
908908overlay [ local]
909- private predicate discardableMethod ( string file , @method m ) {
910- not isOverlay ( ) and
911- file = getRawFile ( m ) and
912- exists ( @classorinterface c | methods ( m , _, _, _, c , _) and isAnonymClass ( c , _) )
913- }
914-
915- /** Discard base methods on anonymous classes in files fully extracted in the overlay. */
916- overlay [ discard_entity]
917- private predicate discardAnonMethod ( @method m ) {
918- exists ( string file | discardableMethod ( file , m ) and extractedInOverlay ( file ) )
919- }
920-
921- overlay [ local]
922- private predicate discardableBaseMethod ( string file , @method m ) {
923- not isOverlay ( ) and
924- file = getRawFile ( m )
909+ private class DiscardableAnonymousMethod extends DiscardableLocatable , @method {
910+ DiscardableAnonymousMethod ( ) {
911+ not isOverlay ( ) and
912+ exists ( @classorinterface c | methods ( this , _, _, _, c , _) and isAnonymClass ( c , _) )
913+ }
925914}
926915
927916overlay [ local]
928- private predicate usedOverlayMethod ( @method m ) { isOverlay ( ) and methods ( m , _, _, _, _, _) }
929-
930- /** Discard base methods in files fully extracted in the overlay that were not extracted in the overlay. */
931- overlay [ discard_entity]
932- private predicate discardMethod ( @method m ) {
933- exists ( string file |
934- discardableBaseMethod ( file , m ) and extractedInOverlay ( file ) and not usedOverlayMethod ( m )
935- )
936- }
917+ private class DiscardableMethod extends DiscardableReferableLocatable , @method { }
0 commit comments