Skip to content

Commit

Permalink
Remove unused properties from VersionOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael B. Gale committed Oct 4, 2023
1 parent bb67edd commit 49b94f1
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 42 deletions.
8 changes: 0 additions & 8 deletions lib/codeql.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/codeql.js.map

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions lib/testing-utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/testing-utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions src/codeql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,7 @@ export interface CodeQL {
}

export interface VersionOutput {
productName: string;
vendor: string;
version: string;
sha: string;
branches: string[];
copyright: string;
unpackedLocation: string;
configFileLocation: string;
configFileFound: boolean;
features?: { [name: string]: boolean };
}

Expand Down Expand Up @@ -458,14 +450,6 @@ export function setCodeQL(partialCodeql: Partial<CodeQL>): CodeQL {
() =>
new Promise((resolve) =>
resolve({
productName: "CodeQL",
vendor: "GitHub",
sha: "",
branches: [],
copyright: "",
unpackedLocation: "",
configFileLocation: "",
configFileFound: false,
version: "1.0.0",
}),
),
Expand Down
8 changes: 0 additions & 8 deletions src/testing-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,6 @@ export function mockLanguagesInRepo(languages: string[]) {
* Constructs a `VersionOutput` object for testing purposes only.
*/
export const makeVersionOutput = (version: string): CodeQL.VersionOutput => ({
productName: "CodeQL",
vendor: "GitHub",
sha: "",
branches: [],
copyright: "",
unpackedLocation: "",
configFileLocation: "",
configFileFound: false,
version,
});

Expand Down

0 comments on commit 49b94f1

Please sign in to comment.