commit 372b6d8e5b983bf61c5f30a021ded616fda535c8 from: Stefan Sperling date: Thu Jul 01 14:30:26 2021 UTC remove unused function got_object_idset_lookup_data(); same code as idset_get() commit - f4a2ff2d5ad89a6875828e130932e110d45ba9d6 commit + 372b6d8e5b983bf61c5f30a021ded616fda535c8 blob - af18cee80cb335a5dc991b1aeae0c924ccf4016a blob + 750be4962021434fb27d2dcc95867ff2e333a776 --- lib/got_lib_object_idset.h +++ lib/got_lib_object_idset.h @@ -27,8 +27,6 @@ const struct got_error *got_object_idset_remove(void * struct got_object_idset *, struct got_object_id *); int got_object_idset_contains(struct got_object_idset *, struct got_object_id *); -void *got_object_idset_lookup_data(struct got_object_idset *, - struct got_object_id *); const struct got_error *got_object_idset_for_each(struct got_object_idset *, const struct got_error *(*cb)(struct got_object_id *, void *, void *), void *); blob - 9c2965561dafc92cf9ff2ae9a4b44e4f2e4db6cb blob + 152534fe9ad8d3e39e0d2945b284bbae1f218a2f --- lib/object_idset.c +++ lib/object_idset.c @@ -168,14 +168,6 @@ got_object_idset_contains(struct got_object_idset *set return entry ? 1 : 0; } -void * -got_object_idset_lookup_data(struct got_object_idset *set, - struct got_object_id *id) -{ - struct got_object_idset_element *entry = find_element(set, id); - return entry ? entry->data : NULL; -} - const struct got_error * got_object_idset_for_each(struct got_object_idset *set, const struct got_error *(*cb)(struct got_object_id *, void *, void *),