diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-02-24 20:34:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 6ff281bf14c6be02f1ff681a7c63607b06f1c1d3 (patch) | |
tree | d095af687bbd3958503fd81b737cd3c33dc6decb /src/buffer.c | |
parent | e0544300fb7da9a660a55eaf25f1996af573cd43 (diff) |
Restrict buffer_deinit to scoped allocator
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/buffer.c b/src/buffer.c index 349c186..d5e6d97 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -14,13 +14,6 @@ int buffer_init(Buffer *self, ScopedAllocator *allocator) { return 0; } -void buffer_deinit(Buffer *self) { - am_free(self->data); - self->data = NULL; - self->size = 0; - self->capacity = 0; -} - static CHECK_RESULT int buffer_ensure_capacity(Buffer *self, usize new_capacity) { usize capacity; void *new_mem; |