summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2015-05-25 18:39:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-05-25 19:19:39 (GMT)
commit0a0c9532170e6f2fec1a89aa4dff94c74d2d11d7 (patch)
treeab548fecba457593af0b2b4720f5e5d20dc1d85b /refs.h
parentc38cd1c89d662dc0f4fd30f98cc8904c2143c7ab (diff)
downloadgit-0a0c9532170e6f2fec1a89aa4dff94c74d2d11d7.zip
git-0a0c9532170e6f2fec1a89aa4dff94c74d2d11d7.tar.gz
git-0a0c9532170e6f2fec1a89aa4dff94c74d2d11d7.tar.bz2
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>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/refs.h b/refs.h
index 4042109..8c3d433 100644
--- a/refs.h
+++ b/refs.h
@@ -69,17 +69,6 @@ struct ref_transaction;
typedef int each_ref_fn(const char *refname,
const struct object_id *oid, int flags, void *cb_data);
-typedef int each_ref_sha1_fn(const char *refname,
- const unsigned char *sha1, int flags, void *cb_data);
-
-struct each_ref_fn_sha1_adapter {
- each_ref_sha1_fn *original_fn;
- void *original_cb_data;
-};
-
-extern int each_ref_fn_adapter(const char *refname,
- const struct object_id *oid, int flags, void *cb_data);
-
/*
* The following functions invoke the specified callback function for
* each reference indicated. If the function ever returns a nonzero