diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-11-12 14:19:37 +0100 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-12-01 08:34:25 +0100 |
commit | 47261d9c8a23c3ccec245c2640d4d9a8b9f182c2 (patch) | |
tree | 0b216bbc366b64f234e0b666991dce959b3fa366 | |
parent | 83458bb77ff8dd82411924c7fd376dc338c8bd18 (diff) | |
download | libgit2-47261d9c8a23c3ccec245c2640d4d9a8b9f182c2.tar.gz |
tests: drop unused variables
-rw-r--r-- | tests-clar/refs/create.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests-clar/refs/create.c b/tests-clar/refs/create.c index bef9bfd24..d22f04939 100644 --- a/tests-clar/refs/create.c +++ b/tests-clar/refs/create.c @@ -25,16 +25,11 @@ void test_refs_create__symbolic(void) git_reference *new_reference, *looked_up_ref, *resolved_ref; git_repository *repo2; git_oid id; - git_buf ref_path = GIT_BUF_INIT; const char *new_head_tracker = "ANOTHER_HEAD_TRACKER"; git_oid_fromstr(&id, current_master_tip); - /* Retrieve the physical path to the symbolic ref for further cleaning */ - cl_git_pass(git_buf_joinpath(&ref_path, g_repo->path_repository, new_head_tracker)); - git_buf_free(&ref_path); - /* Create and write the new symbolic reference */ cl_git_pass(git_reference_symbolic_create(&new_reference, g_repo, new_head_tracker, current_head_target, 0)); @@ -72,13 +67,11 @@ void test_refs_create__deep_symbolic(void) // create a deep symbolic reference git_reference *new_reference, *looked_up_ref, *resolved_ref; git_oid id; - git_buf ref_path = GIT_BUF_INIT; const char *new_head_tracker = "deep/rooted/tracker"; git_oid_fromstr(&id, current_master_tip); - cl_git_pass(git_buf_joinpath(&ref_path, g_repo->path_repository, new_head_tracker)); cl_git_pass(git_reference_symbolic_create(&new_reference, g_repo, new_head_tracker, current_head_target, 0)); cl_git_pass(git_reference_lookup(&looked_up_ref, g_repo, new_head_tracker)); cl_git_pass(git_reference_resolve(&resolved_ref, looked_up_ref)); @@ -87,7 +80,6 @@ void test_refs_create__deep_symbolic(void) git_reference_free(new_reference); git_reference_free(looked_up_ref); git_reference_free(resolved_ref); - git_buf_free(&ref_path); } void test_refs_create__oid(void) @@ -96,15 +88,11 @@ void test_refs_create__oid(void) git_reference *new_reference, *looked_up_ref; git_repository *repo2; git_oid id; - git_buf ref_path = GIT_BUF_INIT; const char *new_head = "refs/heads/new-head"; git_oid_fromstr(&id, current_master_tip); - /* Retrieve the physical path to the symbolic ref for further cleaning */ - cl_git_pass(git_buf_joinpath(&ref_path, g_repo->path_repository, new_head)); - /* Create and write the new object id reference */ cl_git_pass(git_reference_create(&new_reference, g_repo, new_head, &id, 0)); @@ -128,7 +116,6 @@ void test_refs_create__oid(void) git_reference_free(new_reference); git_reference_free(looked_up_ref); - git_buf_free(&ref_path); } void test_refs_create__oid_unknown(void) |