Skip to content

Commit 42d7f62

Browse files
committed
Remove dead code
1 parent 540699d commit 42d7f62

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

‎src/setup-codeql.test.ts‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as sinon from "sinon";
77

88
import * as actionsUtil from "./actions-util";
99
import * as api from "./api-client";
10-
import { Feature, FeatureEnablement } from "./feature-flags";
10+
import { Feature } from "./feature-flags";
1111
import { getRunnerLogger } from "./logging";
1212
import * as setupCodeql from "./setup-codeql";
1313
import * as tar from "./tar";
@@ -19,7 +19,6 @@ import {
1919
checkExpectedLogMessages,
2020
createFeatures,
2121
getRecordingLogger,
22-
initializeFeatures,
2322
makeMacro,
2423
mockBundleDownloadApi,
2524
setupActionsVars,
@@ -34,14 +33,6 @@ import {
3433

3534
setupTests(test);
3635

37-
// TODO: Remove when when we no longer need to pass in features (https://github.com/github/codeql-action/issues/2600)
38-
const expectedFeatureEnablement: FeatureEnablement = initializeFeatures(
39-
true,
40-
) as FeatureEnablement;
41-
expectedFeatureEnablement.getValue = function (feature: Feature) {
42-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
43-
return expectedFeatureEnablement[feature];
44-
};
4536
test.beforeEach(() => {
4637
initializeEnvironment("1.2.3");
4738
});

0 commit comments

Comments
 (0)