summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/c/gu')
-rw-r--r--src/runtime/c/gu/mem.c3
-rw-r--r--src/runtime/c/gu/seq.c6
-rw-r--r--src/runtime/c/gu/seq.h3
3 files changed, 1 insertions, 11 deletions
diff --git a/src/runtime/c/gu/mem.c b/src/runtime/c/gu/mem.c
index 62ffef85d..cc168637e 100644
--- a/src/runtime/c/gu/mem.c
+++ b/src/runtime/c/gu/mem.c
@@ -311,9 +311,8 @@ gu_pool_free(GuPool* pool)
{
GuFinalizerNode* node = pool->finalizers;
while (node) {
- GuFinalizerNode* next = node->next;
node->fin->fn(node->fin);
- node = next;
+ node = node->next;
}
GuMemChunk* chunk = pool->chunks;
while (chunk) {
diff --git a/src/runtime/c/gu/seq.c b/src/runtime/c/gu/seq.c
index 2b99df318..2c3d6c3e3 100644
--- a/src/runtime/c/gu/seq.c
+++ b/src/runtime/c/gu/seq.c
@@ -136,12 +136,6 @@ gu_buf_data(GuBuf* buf)
return &buf->seq->data;
}
-void*
-gu_buf_last(GuBuf* buf)
-{
- return buf->seq->data + buf->elem_size*(buf->seq->len-1);
-}
-
GuSeq*
gu_buf_data_seq(GuBuf* buf)
{
diff --git a/src/runtime/c/gu/seq.h b/src/runtime/c/gu/seq.h
index 034620140..5accb0b24 100644
--- a/src/runtime/c/gu/seq.h
+++ b/src/runtime/c/gu/seq.h
@@ -65,9 +65,6 @@ gu_buf_avail(GuBuf* buf);
void*
gu_buf_data(GuBuf* buf);
-void*
-gu_buf_last(GuBuf* buf);
-
GuSeq*
gu_buf_data_seq(GuBuf* buf);