From d2bd17e5a53d0ffa375df1a5ad957556be2f2b83 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 6 Jan 2016 14:30:08 +0530 Subject: dict: Don't expose get_new_dict/dict_destroy get_new_dict/dict_destroy is causing confusion where, dict_new/dict_destroy or get_new_dict/dict_unref are used instead of dict_new/dict_unref. Change-Id: I4cc69f5b6711d720823395e20fd624a0c6c1168c BUG: 1296043 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/13183 Smoke: Gluster Build System CentOS-regression: Gluster Build System NetBSD-regression: NetBSD Build System Reviewed-by: Jeff Darcy Reviewed-by: Krutika Dhananjay --- libglusterfs/src/dict.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h index afe83d68fc3..b2a700f9a92 100644 --- a/libglusterfs/src/dict.h +++ b/libglusterfs/src/dict.h @@ -113,7 +113,6 @@ int32_t dict_unserialize (char *buf, int32_t size, dict_t **fill); int32_t dict_allocate_and_serialize (dict_t *this, char **buf, u_int *length); -void dict_destroy (dict_t *dict); void dict_unref (dict_t *dict); dict_t *dict_ref (dict_t *dict); data_t *data_ref (data_t *data); @@ -154,11 +153,7 @@ char *data_to_str (data_t *data); void *data_to_bin (data_t *data); void *data_to_ptr (data_t *data); -data_t *get_new_data (void); data_t * data_copy (data_t *old); -dict_t *get_new_dict_full (int size_hint); -dict_t *get_new_dict (void); - int dict_foreach (dict_t *this, int (*fn)(dict_t *this, char *key, @@ -191,6 +186,7 @@ int dict_null_foreach_fn (dict_t *d, char *k, int dict_remove_foreach_fn (dict_t *d, char *k, data_t *v, void *tmp); dict_t *dict_copy (dict_t *this, dict_t *new); +dict_t *get_new_dict (void); int dict_keys_join (void *value, int size, dict_t *dict, int (*filter_fn)(char *key)); -- cgit