Skip to content

Commit

Permalink
chore: cleanup commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Oct 23, 2024
1 parent 4badd60 commit 4f2c006
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
6 changes: 0 additions & 6 deletions packages/zwave-js/src/lib/log/Driver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ test.before(async (t) => {
loadConfiguration: false,
skipNodeInterview: true,
skipControllerIdentification: true,
// beforeStartup(mockPort) {
// controller = new MockController({ serial: mockPort });
// controller.defineBehavior(
// ...createDefaultMockControllerBehaviors(),
// );
// },
});
t.context.driver = driver;

Expand Down
2 changes: 0 additions & 2 deletions packages/zwave-js/src/lib/node/NodeReadyMachine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ test("when the driver is restarted from cache, the node should be ready as soon
const service = startMachine(t, testMachine);
service.send("RESTART_FROM_CACHE");
t.is(service.getSnapshot().value, "readyIfNotDead");
// service.send("MAYBE_DEAD");
// t.is(service.getSnapshot().value, "readyIfNotDead");
service.send("NOT_DEAD");
t.is(service.getSnapshot().value, "ready");
});
Expand Down
14 changes: 0 additions & 14 deletions packages/zwave-js/src/lib/test/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,6 @@ export function createTestNode(
return !ret.isListening && !ret.isFrequentListening;
},

// status: options.status
// ?? (options.isListening ? NodeStatus.Alive : NodeStatus.Asleep),
// interviewStage: options.interviewStage ?? InterviewStage.Complete,

setEndpoint: (endpoint) => {
endpointCache.set(
endpoint.index,
Expand Down Expand Up @@ -292,16 +288,6 @@ export function createTestNode(
return ep;
},

// getAllEndpoints() {
// if (!options.numEndpoints) return [...endpointCache.values()];
// const eps: IZWaveEndpoint[] = [];
// for (let i = 0; i <= options.numEndpoints; i++) {
// const ep = ret.getEndpoint(i);
// if (ep) eps.push(ep);
// }
// return eps;
// },

// These are copied from Node.ts
getHighestSecurityClass(): SecurityClass | undefined {
if (securityClasses.size === 0) return undefined;
Expand Down

0 comments on commit 4f2c006

Please sign in to comment.