gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 1480571b0699ba22819334d8b961633e57dbb800
parent 4f4182f72a4148de7576e27f9545b8f6ca9a5728
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 13 Aug 2013 22:48:59 +0000

-dead code elimination

Diffstat:
Msrc/core/gnunet-service-core_clients.c | 10+---------
Msrc/core/gnunet-service-core_clients.h | 8--------
Msrc/core/gnunet-service-core_sessions.c | 11+++++------
3 files changed, 6 insertions(+), 23 deletions(-)

diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c @@ -680,8 +680,6 @@ GSC_CLIENTS_reject_request (struct GSC_ClientActiveRequest *car) * * @param client client to notify * @param neighbour identity of the neighbour that changed status - * @param atsi performance information about neighbour - * @param atsi_count number of entries in 'ats' array * @param tmap_old previous type map for the neighbour, NULL for disconnect * @param tmap_new updated type map for the neighbour, NULL for disconnect */ @@ -689,8 +687,6 @@ void GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, const struct GNUNET_PeerIdentity *neighbour, - const struct GNUNET_ATS_Information - *atsi, unsigned int atsi_count, const struct GSC_TypeMap *tmap_old, const struct GSC_TypeMap *tmap_new) { @@ -755,23 +751,19 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, * or types processed by the respective peer. * * @param neighbour identity of the neighbour that changed status - * @param atsi performance information about neighbour - * @param atsi_count number of entries in 'ats' array * @param tmap_old previous type map for the neighbour, NULL for disconnect * @param tmap_new updated type map for the neighbour, NULL for disconnect */ void GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour, - const struct GNUNET_ATS_Information - *atsi, unsigned int atsi_count, const struct GSC_TypeMap *tmap_old, const struct GSC_TypeMap *tmap_new) { struct GSC_Client *c; for (c = client_head; c != NULL; c = c->next) - GSC_CLIENTS_notify_client_about_neighbour (c, neighbour, atsi, atsi_count, + GSC_CLIENTS_notify_client_about_neighbour (c, neighbour, tmap_old, tmap_new); } diff --git a/src/core/gnunet-service-core_clients.h b/src/core/gnunet-service-core_clients.h @@ -52,8 +52,6 @@ GSC_CLIENTS_send_to_client (struct GNUNET_SERVER_Client *client, * * @param client client to notify * @param neighbour identity of the neighbour that changed status - * @param atsi performance information about neighbour - * @param atsi_count number of entries in 'ats' array * @param tmap_old previous type map for the neighbour, NULL for disconnect * @param tmap_new updated type map for the neighbour, NULL for disconnect */ @@ -61,8 +59,6 @@ void GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, const struct GNUNET_PeerIdentity *neighbour, - const struct GNUNET_ATS_Information - *atsi, unsigned int atsi_count, const struct GSC_TypeMap *tmap_old, const struct GSC_TypeMap *tmap_new); @@ -73,16 +69,12 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, * or types processed by the respective peer. * * @param neighbour identity of the neighbour that changed status - * @param atsi performance information about neighbour - * @param atsi_count number of entries in 'ats' array * @param tmap_old previous type map for the neighbour, NULL for disconnect * @param tmap_new updated type map for the neighbour, NULL for disconnect */ void GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour, - const struct GNUNET_ATS_Information - *atsi, unsigned int atsi_count, const struct GSC_TypeMap *tmap_old, const struct GSC_TypeMap *tmap_new); diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c @@ -199,8 +199,7 @@ GSC_SESSIONS_end (const struct GNUNET_PeerIdentity *pid) GNUNET_free (sme); } GNUNET_SCHEDULER_cancel (session->typemap_task); - GSC_CLIENTS_notify_clients_about_neighbour (&session->peer, NULL, - 0 /* FIXME: ATSI */ , + GSC_CLIENTS_notify_clients_about_neighbour (&session->peer, session->tmap, NULL); GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove (sessions, @@ -280,7 +279,7 @@ GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer, GNUNET_STATISTICS_set (GSC_stats, gettext_noop ("# peers connected"), GNUNET_CONTAINER_multihashmap_size (sessions), GNUNET_NO); - GSC_CLIENTS_notify_clients_about_neighbour (peer, NULL, 0 /* FIXME: ATSI */ , + GSC_CLIENTS_notify_clients_about_neighbour (peer, NULL, session->tmap); } @@ -300,7 +299,7 @@ notify_client_about_session (void *cls, const struct GNUNET_HashCode * key, struct GSC_Client *client = cls; struct Session *session = value; - GSC_CLIENTS_notify_client_about_neighbour (client, &session->peer, NULL, 0, /* FIXME: ATS!? */ + GSC_CLIENTS_notify_client_about_neighbour (client, &session->peer, NULL, /* old TMAP: none */ session->tmap); return GNUNET_OK; @@ -749,7 +748,7 @@ GSC_SESSIONS_set_typemap (const struct GNUNET_PeerIdentity *peer, GNUNET_break (0); return; } - GSC_CLIENTS_notify_clients_about_neighbour (peer, NULL, 0, /* FIXME: ATS */ + GSC_CLIENTS_notify_clients_about_neighbour (peer, session->tmap, nmap); GSC_TYPEMAP_destroy (session->tmap); session->tmap = nmap; @@ -778,7 +777,7 @@ GSC_SESSIONS_add_to_typemap (const struct GNUNET_PeerIdentity *peer, if (GNUNET_YES == GSC_TYPEMAP_test_match (session->tmap, &type, 1)) return; /* already in it */ nmap = GSC_TYPEMAP_extend (session->tmap, &type, 1); - GSC_CLIENTS_notify_clients_about_neighbour (peer, NULL, 0, /* FIXME: ATS */ + GSC_CLIENTS_notify_clients_about_neighbour (peer, session->tmap, nmap); GSC_TYPEMAP_destroy (session->tmap); session->tmap = nmap;