From 57d9b47016e550ef0581a68eaa33b3a1df5d0cce Mon Sep 17 00:00:00 2001 From: Paarth Madan Date: Mon, 19 Sep 2022 13:04:37 -0400 Subject: [PATCH] Remove unused constant TRILOGY_MAX_PROTO_PACKET_LEN This constant was never used in code. This commit removes the constant and updates documentation to better reflect how the codebase actually operates; TRILOGY_MAX_PACKET_LEN is the constant used throughout to signify the maximum length of a packet. --- inc/trilogy/builder.h | 2 +- inc/trilogy/protocol.h | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/inc/trilogy/builder.h b/inc/trilogy/builder.h index 23450a61..56ce1f1d 100644 --- a/inc/trilogy/builder.h +++ b/inc/trilogy/builder.h @@ -26,7 +26,7 @@ typedef struct { * buffer - A pre-initialized trilogy_buffer_t pointer * seq - The initial sequence number for the packet to be built. This is * the initial number because the builder API will automatically - * split buffers that are larger than TRILOGY_MAX_PROTO_PACKET_LEN into + * split buffers that are larger than TRILOGY_MAX_PACKET_LEN into * multiple packets and increment the sequence number in each packet * following the initial. * diff --git a/inc/trilogy/protocol.h b/inc/trilogy/protocol.h index c3211149..9b4af349 100644 --- a/inc/trilogy/protocol.h +++ b/inc/trilogy/protocol.h @@ -370,11 +370,6 @@ typedef enum { #undef XX } TRILOGY_COLUMN_FLAG_t; -/* - * Data between client and server is exchanged in packets of max 16MByte size. - */ -#define TRILOGY_MAX_PROTO_PACKET_LEN 0xffffff - // Typical response packet types typedef enum { TRILOGY_PACKET_OK = 0x0,