From 61838295a055c8c7a4a7eb730538c6e08a38dd6a Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Wed, 26 Jan 2022 16:22:04 -0500 Subject: object: move oid header printing to object --- src/libgit2/oid.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/libgit2/oid.c') diff --git a/src/libgit2/oid.c b/src/libgit2/oid.c index e038cc08e..83f0fa59d 100644 --- a/src/libgit2/oid.c +++ b/src/libgit2/oid.c @@ -143,16 +143,6 @@ char *git_oid_tostr(char *out, size_t n, const git_oid *oid) return out; } -void git_oid__writebuf(git_str *buf, const char *header, const git_oid *oid) -{ - char hex_oid[GIT_OID_SHA1_HEXSIZE]; - - git_oid_fmt(hex_oid, oid); - git_str_puts(buf, header); - git_str_put(buf, hex_oid, GIT_OID_SHA1_HEXSIZE); - git_str_putc(buf, '\n'); -} - int git_oid_fromraw(git_oid *out, const unsigned char *raw) { memcpy(out->id, raw, sizeof(out->id)); -- cgit v1.2.1