diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-07-09 04:37:16 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-07-09 04:40:16 +0400 |
commit | 06c43821b94dcf9fa4f95f29c12f77d18a402690 (patch) | |
tree | 219e1f975109df1989bdcd86611e59ccf1ca403e /tests | |
parent | afeecf4f262b74270368ef8a70c582ea9d5a18e8 (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 'tests')
-rw-r--r-- | tests/t04-commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/t04-commit.c b/tests/t04-commit.c index 0f480e552..a0d24dab1 100644 --- a/tests/t04-commit.c +++ b/tests/t04-commit.c @@ -117,14 +117,14 @@ BEGIN_TEST(parse0, "parse the OID line in a commit") const char *ptr = string;\ const char *ptr_original = ptr;\ size_t len = strlen(ptr);\ - must_pass(git__parse_oid(&oid, &ptr, ptr + len, header));\ + must_pass(git_oid__parse(&oid, &ptr, ptr + len, header));\ must_be_true(ptr == ptr_original + len);\ } #define TEST_OID_FAIL(string, header) { \ const char *ptr = string;\ size_t len = strlen(ptr);\ - must_fail(git__parse_oid(&oid, &ptr, ptr + len, header));\ + must_fail(git_oid__parse(&oid, &ptr, ptr + len, header));\ } TEST_OID_PASS("parent 05452d6349abcd67aa396dfb28660d765d8b2a36\n", "parent "); |