Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/oid.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-07-09 04:37:16 +0400
committerVicent Marti <tanoku@gmail.com>2011-07-09 04:40:16 +0400
commit06c43821b94dcf9fa4f95f29c12f77d18a402690 (patch)
tree219e1f975109df1989bdcd86611e59ccf1ca403e /src/oid.c
parentafeecf4f262b74270368ef8a70c582ea9d5a18e8 (diff)
Remove unused methods
The direct-writes commit left some (slow) internals methods that were no longer needed. These have been removed. Also, the Reflog code was using the old `git_signature__write`, so it has been rewritten to use a normal buffer and the new `writebuf` signature writer. It's now slightly simpler and faster.
Diffstat (limited to 'src/oid.c')
-rw-r--r--src/oid.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/oid.c b/src/oid.c
index 8274cb55c..f12ba30b9 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -136,7 +136,7 @@ char *git_oid_to_string(char *out, size_t n, const git_oid *oid)
return out;
}
-int git__parse_oid(git_oid *oid, const char **buffer_out,
+int git_oid__parse(git_oid *oid, const char **buffer_out,
const char *buffer_end, const char *header)
{
const size_t sha_len = GIT_OID_HEXSZ;
@@ -161,20 +161,6 @@ int git__parse_oid(git_oid *oid, const char **buffer_out,
return GIT_SUCCESS;
}
-int git__write_oid(git_odb_stream *stream, const char *header, const git_oid *oid)
-{
- char hex_oid[42];
-
- git_oid_fmt(hex_oid + 1, oid);
-
- hex_oid[0] = ' ';
- hex_oid[41] = '\n';
-
- stream->write(stream, header, strlen(header));
- stream->write(stream, hex_oid, 42);
- return GIT_SUCCESS;
-}
-
void git_oid__writebuf(git_buf *buf, const char *header, const git_oid *oid)
{
char hex_oid[GIT_OID_HEXSZ];