mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
hash.h: drop unsafe_ function variants
Now that all callers have been converted from:
the_hash_algo->unsafe_init_fn();
to
unsafe_hash_algo(the_hash_algo)->init_fn();
and similar, we can remove the scaffolding for the unsafe_ function
variants and force callers to use the new unsafe_hash_algo() mechanic
instead.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
a8dd3821fe
commit
04292c3796
15
hash.h
15
hash.h
@@ -282,21 +282,6 @@ struct git_hash_algo {
|
||||
/* The hash finalization function for object IDs. */
|
||||
git_hash_final_oid_fn final_oid_fn;
|
||||
|
||||
/* The non-cryptographic hash initialization function. */
|
||||
git_hash_init_fn unsafe_init_fn;
|
||||
|
||||
/* The non-cryptographic hash context cloning function. */
|
||||
git_hash_clone_fn unsafe_clone_fn;
|
||||
|
||||
/* The non-cryptographic hash update function. */
|
||||
git_hash_update_fn unsafe_update_fn;
|
||||
|
||||
/* The non-cryptographic hash finalization function. */
|
||||
git_hash_final_fn unsafe_final_fn;
|
||||
|
||||
/* The non-cryptographic hash finalization function. */
|
||||
git_hash_final_oid_fn unsafe_final_oid_fn;
|
||||
|
||||
/* The OID of the empty tree. */
|
||||
const struct object_id *empty_tree;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user