Skip to content

Commit b5045b3

Browse files
authored
Merge pull request #20363 from asgerf/js/remove-fallback-type
JS: Remove unused getFallbackTypeAnnotation()
2 parents d51361c + d8346ef commit b5045b3

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

javascript/ql/lib/semmle/javascript/dataflow/DataFlow.qll

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -192,26 +192,6 @@ module DataFlow {
192192
FlowSteps::identityFunctionStep(result, this)
193193
}
194194

195-
/**
196-
* Gets the type annotation describing the type of this node,
197-
* provided that a static type could not be found.
198-
*
199-
* Doesn't take field types and function return types into account.
200-
*/
201-
private TypeAnnotation getFallbackTypeAnnotation() {
202-
exists(BindingPattern pattern |
203-
this = valueNode(pattern) and
204-
result = pattern.getTypeAnnotation()
205-
)
206-
or
207-
result = this.getAPredecessor().getFallbackTypeAnnotation()
208-
or
209-
exists(DataFlow::ClassNode cls, string fieldName |
210-
this = cls.getAReceiverNode().getAPropertyRead(fieldName) and
211-
result = cls.getFieldTypeAnnotation(fieldName)
212-
)
213-
}
214-
215195
private NameResolution::Node getNameResolutionNode() {
216196
this = valueNode(result)
217197
or

0 commit comments

Comments
 (0)