diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-02 12:56:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-03 10:24:11 -0700 |
commit | 249c8f4a164c8502f8274c505a48b9c686f458d0 (patch) | |
tree | de813b93fbe7e3533a4df6431d7185c33f877b55 /sha1_name.c | |
parent | 8c135ea260a84ef71899c8bd23bb39425288f9fe (diff) | |
download | git-249c8f4a164c8502f8274c505a48b9c686f458d0.tar.gz |
sha1_name.c: get rid of get_sha1_with_mode()
There are only two callers, and they will benefit from being able to
pass disambiguation hints to underlying get_sha1_with_context() API
once it happens.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
-rw-r--r-- | sha1_name.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sha1_name.c b/sha1_name.c index df583c25bc..e63459bd51 100644 --- a/sha1_name.c +++ b/sha1_name.c @@ -1139,14 +1139,6 @@ void maybe_die_on_misspelt_object_name(const char *name, const char *prefix) get_sha1_with_context_1(name, sha1, &oc, 1, prefix); } -int get_sha1_with_mode(const char *str, unsigned char *sha1, unsigned *mode) -{ - struct object_context oc; - int ret = get_sha1_with_context_1(str, sha1, &oc, 0, NULL); - *mode = oc.mode; - return ret; -} - int get_sha1_with_context(const char *str, unsigned char *sha1, struct object_context *orc) { return get_sha1_with_context_1(str, sha1, orc, 0, NULL); |