Skip to content

Commit 068a948

Browse files
author
Stephan Brandauer
committed
fix ql-for-ql warnings
1 parent 3aa4e29 commit 068a948

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ class ContextSurroundingFunctionParameters extends EndpointFeature,
334334
override string getValue(DataFlow::Node endpoint) {
335335
result =
336336
concat(string functionParameterLine, Function f |
337-
f = getRelevantFunction(endpoint) and
337+
f = this.getRelevantFunction(endpoint) and
338338
functionParameterLine = SyntacticUtilities::getFunctionParametersFeatureComponent(f)
339339
|
340340
functionParameterLine, "\n"
@@ -471,17 +471,6 @@ class ContextFunctionInterfaces extends EndpointFeature, TContextFunctionInterfa
471471
* Syntactic utilities for feature value computation.
472472
*/
473473
private module SyntacticUtilities {
474-
bindingset[start, end]
475-
string renderStringConcatOperands(DataFlow::Node root, int start, int end) {
476-
result =
477-
concat(int i, string operand |
478-
i = [start .. end] and
479-
operand = renderStringConcatOperand(StringConcatenation::getOperand(root, i))
480-
|
481-
operand, " + " order by i
482-
)
483-
}
484-
485474
string renderStringConcatOperand(DataFlow::Node operand) {
486475
if exists(unique(string v | operand.mayHaveStringValue(v)))
487476
then result = "'" + any(string v | operand.mayHaveStringValue(v)) + "'"
@@ -544,7 +533,6 @@ private module SyntacticUtilities {
544533
result =
545534
concat(Function func, string line |
546535
func.getFile() = file and
547-
exists(func.getName()) and
548536
line = func.getName() + getFunctionParametersFeatureComponent(func)
549537
|
550538
line, "\n" order by line

javascript/ql/experimental/adaptivethreatmodeling/modelbuilding/debug/CompareFeatures.ql

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)