Skip to content

Commit 2b10abe

Browse files
authored
Remove not-implemented methods from BufferWriter (project-chip#36368)
1 parent 344632c commit 2b10abe

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/lib/support/BufferWriter.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,28 +87,8 @@ class BufferWriter
8787
uint8_t * Buffer() { return mBuf; }
8888
const uint8_t * Buffer() const { return mBuf; }
8989

90-
BufferWriter & Format(const char * format, ...) ENFORCE_FORMAT(2, 3)
91-
{
92-
va_list args;
93-
va_start(args, format);
94-
VFormat(format, args);
95-
va_end(args);
96-
return *this;
97-
}
98-
9990
void Reset() { mNeeded = 0; }
10091

101-
/// Since this uses vsnprintf internally, on overflow
102-
/// this will write one less byte that strictly can be
103-
/// written (since null terminator will be in the binary data)
104-
BufferWriter & VFormat(const char * format, va_list args) ENFORCE_FORMAT(2, 0);
105-
106-
/// Assume a specific size for the buffer instead of mSize
107-
///
108-
/// This is to allow avoiding off-by-one overflow truncation
109-
/// when we know the underlying buffer size is larger.
110-
BufferWriter & VFormatWithSize(size_t size, const char * format, va_list args) ENFORCE_FORMAT(3, 0);
111-
11292
protected:
11393
uint8_t * mBuf;
11494
size_t mSize;

0 commit comments

Comments
 (0)