From eb4c1c193a510fc00b332a0ffb30831d1a2cc777 Mon Sep 17 00:00:00 2001 From: Ali Mirghasemi Date: Wed, 13 Nov 2024 17:26:55 +0330 Subject: [PATCH] Remove unused macros --- Src/StreamBuffer.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Src/StreamBuffer.c b/Src/StreamBuffer.c index d146c2c..0c8ca75 100644 --- a/Src/StreamBuffer.c +++ b/Src/StreamBuffer.c @@ -59,18 +59,6 @@ static const Stream_GetBytesFn getBytesAt[2] = { #define __checkReverseOff(STREAM, VAL) -#define __getValueAt(TY, VAL_TY) \ -VAL_TY Stream_get ##TY ##At(StreamBuffer* stream, Stream_LenType index) { \ - VAL_TY val = STREAM_READ_DEFAULT_VALUE; \ - __getBytesAt(stream, index, (uint8_t*) &val, sizeof(val)); \ - return val; \ -} - -#define __findValueAt(TY, VAL_TY, X) \ -Stream_LenType Stream_find ##TY ##At(StreamBuffer* stream, Stream_LenType offset, VAL_TY val) { \ - __checkReverse ##X (stream, val); \ - return Stream_findPatternAt(stream, offset, (uint8_t*) &val, sizeof(val)); \ -} /* StreamBuffer MemIO default driver*/ #if STREAM_MEM_IO == STREAM_MEM_IO_DRIVER static const Stream_MemIO STREAM_DEFAULT_DRIVER = {