Skip to content

Commit 49b94f1

Browse files
committed
Remove unused properties from VersionOutput
1 parent bb67edd commit 49b94f1

6 files changed

Lines changed: 2 additions & 42 deletions

File tree

lib/codeql.js

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/codeql.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/testing-utils.js

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/testing-utils.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/codeql.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,7 @@ export interface CodeQL {
213213
}
214214

215215
export interface VersionOutput {
216-
productName: string;
217-
vendor: string;
218216
version: string;
219-
sha: string;
220-
branches: string[];
221-
copyright: string;
222-
unpackedLocation: string;
223-
configFileLocation: string;
224-
configFileFound: boolean;
225217
features?: { [name: string]: boolean };
226218
}
227219

@@ -458,14 +450,6 @@ export function setCodeQL(partialCodeql: Partial<CodeQL>): CodeQL {
458450
() =>
459451
new Promise((resolve) =>
460452
resolve({
461-
productName: "CodeQL",
462-
vendor: "GitHub",
463-
sha: "",
464-
branches: [],
465-
copyright: "",
466-
unpackedLocation: "",
467-
configFileLocation: "",
468-
configFileFound: false,
469453
version: "1.0.0",
470454
}),
471455
),

src/testing-utils.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,6 @@ export function mockLanguagesInRepo(languages: string[]) {
212212
* Constructs a `VersionOutput` object for testing purposes only.
213213
*/
214214
export const makeVersionOutput = (version: string): CodeQL.VersionOutput => ({
215-
productName: "CodeQL",
216-
vendor: "GitHub",
217-
sha: "",
218-
branches: [],
219-
copyright: "",
220-
unpackedLocation: "",
221-
configFileLocation: "",
222-
configFileFound: false,
223215
version,
224216
});
225217

0 commit comments

Comments
 (0)