C#: Remove more empty predicates.

This commit is contained in:
Michael Nebel
2022-01-04 12:24:53 +01:00
parent a6b79926b2
commit d5768bf4ed

View File

@@ -299,26 +299,6 @@ private module FrameworkDataFlowAdaptor {
FrameworkDataFlowAdaptor() { ltdf.clearsContent(_, _, this) }
predicate input(
CallableFlowSource source, AccessPath sourceAp, SummaryComponent head,
SummaryComponentStack tail, int i
) {
none()
}
predicate output(
CallableFlowSink sink, AccessPath sinkAp, SummaryComponent head, SummaryComponentStack tail,
int i
) {
none()
}
override predicate propagatesFlow(
SummaryComponentStack input, SummaryComponentStack output, boolean preservesValue
) {
none()
}
override predicate clearsContent(ParameterPosition pos, Content content) {
exists(SummaryComponentStack input |
ltdf.clearsContent(toCallableFlowSource(input), content, this) and
@@ -341,12 +321,6 @@ private module FrameworkDataFlowAdaptor {
head = SummaryComponent::parameter(j) and
this = SummaryComponentStack::singleton(SummaryComponent::argument(i))
)
or
exists(FrameworkDataFlowAdaptor adaptor |
adaptor.input(_, _, head, this, _)
or
adaptor.output(_, _, head, this, _)
)
}
override predicate required(SummaryComponent c) { c = head }