diff --git a/src/main/network/RuntimeComms.ts b/src/main/network/RuntimeComms.ts index 571dda2..3969691 100644 --- a/src/main/network/RuntimeComms.ts +++ b/src/main/network/RuntimeComms.ts @@ -15,6 +15,8 @@ const PING_INTERVAL = 5000; /** * A type of packet. + * Note CHALLENGE_DATA type has been omitted since 2021 Dawn as Shepherd is now in charge of + * checking challenges. */ enum MsgType { RUN_MODE = 0, @@ -185,18 +187,6 @@ export default class RuntimeComms { } } - /** - * Sends challenge data. - * @param data - the textual challenge data to send. - */ - // eslint-disable-next-line @typescript-eslint/no-unused-vars - sendChallengeInputs(data: protos.IText) { - if (this.#tcpSock) { - throw new Error('Not implemented.'); // MsgTypes from old dawn are inconsistent? - // this.#tcpSock.write(this.#createPacket(MsgType.CHALLENGE_DATA, data)); - } - } - /** * Sends the robot's starting position. * @param startPos - the robot's starting position index to send. @@ -431,14 +421,6 @@ export default class RuntimeComms { */ #createPacket(type: MsgType.TIME_STAMPS, data: protos.ITimeStamps): Buffer; - /* - * Encodes a challenge data packet. - * @param type - the packet type. - * @param data - the packet payload. - * @returns The packet encoded in a Buffer - */ - // #createPacket(type: MsgType.CHALLENGE_DATA, data: protos.IText): Buffer; - /** * Encodes an input state packet. * @param type - the packet type.