Skip to content

Commit 3cc4f5c

Browse files
authored
Remove logic that sets neutral models during automodeling (#3050)
1 parent 4673bf5 commit 3cc4f5c

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

extensions/ql-vscode/src/model-editor/auto-modeler.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -208,27 +208,6 @@ export class AutoModeler {
208208
return;
209209
}
210210

211-
// Any candidate that was part of the response is a negative result
212-
// meaning that the canidate is not a sink for the kinds that the LLM is checking for.
213-
// For now we model this as a sink neutral method, however this is subject
214-
// to discussion.
215-
for (const candidate of candidateMethods) {
216-
if (!(candidate.signature in loadedMethods)) {
217-
loadedMethods[candidate.signature] = [
218-
{
219-
type: "neutral",
220-
kind: "sink",
221-
provenance: "ai-generated",
222-
signature: candidate.signature,
223-
packageName: candidate.packageName,
224-
typeName: candidate.typeName,
225-
methodName: candidate.methodName,
226-
methodParameters: candidate.methodParameters,
227-
},
228-
];
229-
}
230-
}
231-
232211
await this.addModeledMethods(loadedMethods);
233212
}
234213

0 commit comments

Comments
 (0)