[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28605 - gnunet/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28605 - gnunet/src/core |
Date: |
Wed, 14 Aug 2013 00:48:59 +0200 |
Author: grothoff
Date: 2013-08-14 00:48:59 +0200 (Wed, 14 Aug 2013)
New Revision: 28605
Modified:
gnunet/src/core/gnunet-service-core_clients.c
gnunet/src/core/gnunet-service-core_clients.h
gnunet/src/core/gnunet-service-core_sessions.c
Log:
-dead code elimination
Modified: gnunet/src/core/gnunet-service-core_clients.c
===================================================================
--- gnunet/src/core/gnunet-service-core_clients.c 2013-08-13 22:47:27 UTC
(rev 28604)
+++ gnunet/src/core/gnunet-service-core_clients.c 2013-08-13 22:48:59 UTC
(rev 28605)
@@ -680,8 +680,6 @@
*
* @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 @@
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 @@
* 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);
}
Modified: gnunet/src/core/gnunet-service-core_clients.h
===================================================================
--- gnunet/src/core/gnunet-service-core_clients.h 2013-08-13 22:47:27 UTC
(rev 28604)
+++ gnunet/src/core/gnunet-service-core_clients.h 2013-08-13 22:48:59 UTC
(rev 28605)
@@ -52,8 +52,6 @@
*
* @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 @@
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 @@
* 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);
Modified: gnunet/src/core/gnunet-service-core_sessions.c
===================================================================
--- gnunet/src/core/gnunet-service-core_sessions.c 2013-08-13 22:47:27 UTC
(rev 28604)
+++ gnunet/src/core/gnunet-service-core_sessions.c 2013-08-13 22:48:59 UTC
(rev 28605)
@@ -199,8 +199,7 @@
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 @@
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 @@
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 @@
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 @@
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28605 - gnunet/src/core,
gnunet <=