Skip to content

Commit

Permalink
Remove unused constant TRILOGY_MAX_PROTO_PACKET_LEN
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
paarthmadan committed Sep 19, 2022
1 parent a80c404 commit 57d9b47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion inc/trilogy/builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
5 changes: 0 additions & 5 deletions inc/trilogy/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 57d9b47

Please sign in to comment.