From 18deec1f15888454a5ec35351126512612754f57 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 17 Dec 2014 03:07:27 +0000 Subject: [PATCH] -remove dead api --- src/fs/gnunet-service-fs_cp.c | 1 + src/include/gnunet_env_lib.h | 27 +-------------------------- src/util/configuration.c | 6 ++++-- 3 files changed, 6 insertions(+), 28 deletions(-) diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index 029180c2b..d6ffa491d 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c @@ -593,6 +593,7 @@ peer_respect_cb (void *cls, return GNUNET_NO; } + /** * A peer connected to us. Setup the connected peer * records. diff --git a/src/include/gnunet_env_lib.h b/src/include/gnunet_env_lib.h index 85197a7e7..882e92cde 100644 --- a/src/include/gnunet_env_lib.h +++ b/src/include/gnunet_env_lib.h @@ -174,7 +174,7 @@ struct GNUNET_ENV_Modifier * GNUNET_ENV_environment_tail (const struct GNUNET_ENV_Environment *env); -/** +/** * Remove a modifier from the environment. */ void @@ -282,19 +282,6 @@ int GNUNET_ENV_value_to_number (size_t size, const void *value, int64_t *number); -/** - * Get the variable's value as a list. - * - * @param size Size of value. - * @param value Raw value of variable. - * @param[out] list A newly created list holding the elements. - * - * @return #GNUNET_OK on success, #GNUNET_SYSERR if an error occurred (e.g. the value is invalid). - */ -int -GNUNET_ENV_value_to_list (size_t size, const void *value, struct GNUNET_CONTAINER_SList **list); - - /** * Get the variable's value as a dictionary. * @@ -320,18 +307,6 @@ void * GNUNET_ENV_value_from_number (int64_t number, size_t *value_size); -/** - * Create a PSYC variable value from a list. - * - * @param list The list to convert. - * @param[out] value_size Size of returned value. - * - * @return A newly allocated value or NULL on error. - */ -void * -GNUNET_ENV_value_from_list (struct GNUNET_CONTAINER_SList *list, size_t *value_size); - - /** * Create a PSYC variable value from a dictionary. * diff --git a/src/util/configuration.c b/src/util/configuration.c index 8444c2d7d..9b68513af 100644 --- a/src/util/configuration.c +++ b/src/util/configuration.c @@ -324,7 +324,7 @@ GNUNET_CONFIGURATION_parse (struct GNUNET_CONFIGURATION_Handle *cfg, LOG (GNUNET_ERROR_TYPE_DEBUG, "Config file name expanded to `%s'\n", fn); - if (fn == NULL) + if (NULL == fn) return GNUNET_SYSERR; dirty = cfg->dirty; /* back up value! */ if (GNUNET_SYSERR == @@ -351,7 +351,9 @@ GNUNET_CONFIGURATION_parse (struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_free (mem); return GNUNET_SYSERR; } - LOG (GNUNET_ERROR_TYPE_DEBUG, "Deserializing contents of file `%s'\n", fn); + LOG (GNUNET_ERROR_TYPE_DEBUG, + "Deserializing contents of file `%s'\n", + fn); GNUNET_free (fn); ret = GNUNET_CONFIGURATION_deserialize (cfg, mem, fs, GNUNET_YES); GNUNET_free (mem); -- 2.25.1