each_ref_fn_adapter(): remove adapter
All of the callers of the for_each_ref family of functions have now been rewritten to work with object_ids, so this adapter is no longer needed. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
c38cd1c89d
commit
0a0c953217
8
refs.c
8
refs.c
@ -2176,14 +2176,6 @@ int for_each_rawref(each_ref_fn fn, void *cb_data)
|
||||
DO_FOR_EACH_INCLUDE_BROKEN, cb_data);
|
||||
}
|
||||
|
||||
int each_ref_fn_adapter(const char *refname,
|
||||
const struct object_id *oid, int flags, void *cb_data)
|
||||
{
|
||||
struct each_ref_fn_sha1_adapter *cb = cb_data;
|
||||
|
||||
return cb->original_fn(refname, oid->hash, flags, cb->original_cb_data);
|
||||
}
|
||||
|
||||
const char *prettify_refname(const char *name)
|
||||
{
|
||||
return name + (
|
||||
|
||||
Reference in New Issue
Block a user