reftable: stop using strbuf_addbuf()

We're about to introduce our own `reftable_buf` type to replace
`strbuf`. Get rid of the seldomly-used `strbuf_addbuf()` function such
that we have to reimplement one less function.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
This commit is contained in:
Patrick Steinhardt
2024-10-17 06:53:45 +02:00
committed by Taylor Blau
parent ef8ce8f3d4
commit 409f04995e
3 changed files with 8 additions and 7 deletions

View File

@ -60,7 +60,7 @@ static int block_writer_register_restart(struct block_writer *w, int n,
w->next += n;
strbuf_reset(&w->last_key);
strbuf_addbuf(&w->last_key, key);
strbuf_add(&w->last_key, key->buf, key->len);
w->entries++;
return 0;
}