remove unused packet chunk decoder

This commit is contained in:
2025-01-25 09:41:56 -06:00
parent fd27e5246b
commit 130c5f8b00
2 changed files with 0 additions and 19 deletions
-2
View File
@@ -1,5 +1,4 @@
import Chunk from './chunk';
import Packet from './packet';
import PacketHeaderChunk from './packet-header-chunk';
import DataPacketChunk from './data/data-packet-chunk';
@@ -18,7 +17,6 @@ import InfoTrackerNameChunk from './info/info-tracker-name-chunk';
export const Decoders = {
Chunk,
PacketHeaderChunk,
Packet,
DataPacketChunk,
DataTrackerChunk,
DataTrackerXYZChunk,
-17
View File
@@ -1,17 +0,0 @@
import { Decoders } from '.';
import { DataPacketChunk } from '../models/data/data-packet-chunk';
import { InfoPacketChunk } from '../models/info/info-packet-chunk';
export default (buffer: Uint8Array): InfoPacketChunk | DataPacketChunk | undefined => {
const view = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
const chunkId = view.getUint16(0, true);
switch (chunkId) {
case 0x6756:
return Decoders.InfoPacketChunk(buffer);
case 0x6755:
return Decoders.DataPacketChunk(buffer);
default:
return undefined;
}
};