@@ -380,58 +380,12 @@ string paramsString(Callable c) {
380
380
"(" + concat ( int i | | getNestedName ( c .getParameterType ( i ) .getErasure ( ) ) , "," order by i ) + ")"
381
381
}
382
382
383
- pragma [ nomagic]
384
- private string paramsString_old ( Callable c ) {
385
- result =
386
- "(" + concat ( int i | | c .getParameterType ( i ) .getErasure ( ) .toString ( ) , "," order by i ) + ")"
387
- }
388
-
389
383
private string paramsStringQualified ( Callable c ) {
390
384
result =
391
385
"(" + concat ( int i | | getQualifiedName ( c .getParameterType ( i ) .getErasure ( ) ) , "," order by i ) +
392
386
")"
393
387
}
394
388
395
- predicate failMatch (
396
- string package , string type , boolean subtypes , string name , string signature , string sig2 ,
397
- string sigf
398
- ) {
399
- elementSpec ( package , type , subtypes , name , signature , _) and
400
- not exists ( interpretElement0 ( package , type , subtypes , name , signature ) ) and
401
- exists ( Callable c |
402
- c = interpretElement0_old ( package , type , subtypes , name , signature ) and
403
- sig2 = paramsString ( c ) and
404
- sigf = paramsStringQualified ( c )
405
- )
406
- }
407
-
408
- private Element interpretElement0_old (
409
- string package , string type , boolean subtypes , string name , string signature
410
- ) {
411
- elementSpec ( package , type , subtypes , name , signature , _) and
412
- (
413
- exists ( Member m |
414
- (
415
- result = m
416
- or
417
- subtypes = true and result .( SrcMethod ) .overridesOrInstantiates + ( m )
418
- ) and
419
- m .hasQualifiedName ( package , type , name )
420
- |
421
- signature = "" or
422
- m .( Callable ) .getSignature ( ) = any ( string nameprefix ) + signature or
423
- paramsString_old ( m ) = signature
424
- )
425
- or
426
- exists ( RefType t |
427
- t .hasQualifiedName ( package , type ) and
428
- ( if subtypes = true then result .( SrcRefType ) .getASourceSupertype * ( ) = t else result = t ) and
429
- name = "" and
430
- signature = ""
431
- )
432
- )
433
- }
434
-
435
389
private Element interpretElement0 (
436
390
string package , string type , boolean subtypes , string name , string signature
437
391
) {
0 commit comments