@@ -34,39 +34,27 @@ class OptionalTypeTrackerContent extends DataFlowPrivate::TOptionalContentSet {
34
34
}
35
35
}
36
36
37
- private newtype TContentFilter =
38
- MkElementFilter ( ) or
39
- MkPairValueFilter ( )
37
+ private newtype TContentFilter = MkElementFilter ( )
40
38
41
39
/**
42
40
* A label to use for `WithContent` and `WithoutContent` steps, restricting
43
41
* which `ContentSet` may pass through.
44
42
*/
45
43
class ContentFilter extends TContentFilter {
46
44
/** Gets a string representation of this content filter. */
47
- string toString ( ) {
48
- this = MkElementFilter ( ) and result = "elements"
49
- or
50
- this = MkPairValueFilter ( ) and result = "pair value"
51
- }
45
+ string toString ( ) { this = MkElementFilter ( ) and result = "elements" }
52
46
53
47
/** Gets the content of a type-tracker that matches this filter. */
54
48
TypeTrackerContent getAMatchingContent ( ) {
55
49
this = MkElementFilter ( ) and
56
50
result .getAReadContent ( ) instanceof DataFlow:: Content:: ElementContent
57
- or
58
- this = MkPairValueFilter ( ) and
59
- result .getAReadContent ( ) instanceof DataFlow:: Content:: PairValueContent
60
51
}
61
52
}
62
53
63
54
/** Module for getting `ContentFilter` values. */
64
55
module ContentFilter {
65
56
/** Gets the filter that only allow element contents. */
66
57
ContentFilter hasElements ( ) { result = MkElementFilter ( ) }
67
-
68
- /** Gets the filter that only allow pair-value contents. */
69
- ContentFilter hasPairValue ( ) { result = MkPairValueFilter ( ) }
70
58
}
71
59
72
60
/**
@@ -396,9 +384,6 @@ private ContentFilter getFilterFromWithoutContentStep(DataFlow::ContentSet conte
396
384
content .isSingleton ( any ( DataFlow:: Content:: UnknownElementContent c ) )
397
385
) and
398
386
result = MkElementFilter ( )
399
- or
400
- content .isSingleton ( any ( DataFlow:: Content:: UnknownPairValueContent c ) ) and
401
- result = MkPairValueFilter ( )
402
387
}
403
388
404
389
pragma [ nomagic]
@@ -435,9 +420,6 @@ private ContentFilter getFilterFromWithContentStep(DataFlow::ContentSet content)
435
420
content .isSingleton ( any ( DataFlow:: Content:: ElementContent c ) )
436
421
) and
437
422
result = MkElementFilter ( )
438
- or
439
- content .isSingleton ( any ( DataFlow:: Content:: PairValueContent c ) ) and
440
- result = MkPairValueFilter ( )
441
423
}
442
424
443
425
pragma [ nomagic]
0 commit comments