@@ -3,7 +3,7 @@ import { spawn } from "child-process-promise";
33import type { ChildProcessWithoutNullStreams } from "child_process" ;
44import { spawn as spawnChildProcess } from "child_process" ;
55import { readFile } from "fs-extra" ;
6- import { delimiter , dirname , join } from "path" ;
6+ import { delimiter , join } from "path" ;
77import type { Log } from "sarif" ;
88import { SemVer } from "semver" ;
99import type { Readable } from "stream" ;
@@ -91,15 +91,6 @@ export type QlpacksInfo = { [name: string]: string[] };
9191 */
9292type LanguagesInfo = { [ name : string ] : string [ ] } ;
9393
94- /** Information about an ML model, as resolved by `codeql resolve ml-models`. */
95- type MlModelInfo = {
96- checksum : string ;
97- path : string ;
98- } ;
99-
100- /** The expected output of `codeql resolve ml-models`. */
101- type MlModelsInfo = { models : MlModelInfo [ ] } ;
102-
10394/** Information about a data extension predicate, as resolved by `codeql resolve extensions`. */
10495type DataExtensionResult = {
10596 predicate : string ;
@@ -109,7 +100,6 @@ type DataExtensionResult = {
109100
110101/** The expected output of `codeql resolve extensions`. */
111102type ResolveExtensionsResult = {
112- models : MlModelInfo [ ] ;
113103 data : {
114104 [ path : string ] : DataExtensionResult [ ] ;
115105 } ;
@@ -1097,24 +1087,6 @@ export class CodeQLCliServer implements Disposable {
10971087 ) ;
10981088 }
10991089
1100- /** Resolves the ML models that should be available when evaluating a query. */
1101- async resolveMlModels (
1102- additionalPacks : string [ ] ,
1103- queryPath : string ,
1104- ) : Promise < MlModelsInfo > {
1105- const args =
1106- // use the dirname of the path so that we can handle query libraries
1107- [ ...this . getAdditionalPacksArg ( additionalPacks ) , dirname ( queryPath ) ] ;
1108- return await this . runJsonCodeQlCliCommand < MlModelsInfo > (
1109- [ "resolve" , "ml-models" ] ,
1110- args ,
1111- "Resolving ML models" ,
1112- {
1113- addFormat : false ,
1114- } ,
1115- ) ;
1116- }
1117-
11181090 /**
11191091 * Gets the RAM setting for the query server.
11201092 * @param queryMemoryMb The maximum amount of RAM to use, in MB.
0 commit comments