Skip to content

Commit bc9eb99

Browse files
committed
Remove unnecessary fromSource conditions
1 parent 3e91f0f commit bc9eb99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ private class CallableUsedInSource extends Callable {
10111011
this.hasBody()
10121012
or
10131013
exists(Callable target |
1014-
exists(Call c | c.fromSource() |
1014+
exists(Call c |
10151015
// Note that getADynamicTarget does not always include getTarget.
10161016
target = c.getTarget()
10171017
or
@@ -1022,7 +1022,7 @@ private class CallableUsedInSource extends Callable {
10221022
exists(DispatchCall dc | c = dc.getCall() | target = dc.getADynamicTarget())
10231023
)
10241024
or
1025-
target = any(CallableAccess ca | ca.fromSource()).getTarget()
1025+
target = any(CallableAccess ca).getTarget()
10261026
|
10271027
this = target.getUnboundDeclaration()
10281028
)

0 commit comments

Comments
 (0)