aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_sessions.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-13 22:48:59 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-13 22:48:59 +0000
commit1480571b0699ba22819334d8b961633e57dbb800 (patch)
treea0a0e92255e4af4a03c94262fbe2044b42852db4 /src/core/gnunet-service-core_sessions.c
parent4f4182f72a4148de7576e27f9545b8f6ca9a5728 (diff)
downloadgnunet-1480571b0699ba22819334d8b961633e57dbb800.tar.gz
gnunet-1480571b0699ba22819334d8b961633e57dbb800.zip
-dead code elimination
Diffstat (limited to 'src/core/gnunet-service-core_sessions.c')
-rw-r--r--src/core/gnunet-service-core_sessions.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c
index a77919bde..161ce81a8 100644
--- 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)
199 GNUNET_free (sme); 199 GNUNET_free (sme);
200 } 200 }
201 GNUNET_SCHEDULER_cancel (session->typemap_task); 201 GNUNET_SCHEDULER_cancel (session->typemap_task);
202 GSC_CLIENTS_notify_clients_about_neighbour (&session->peer, NULL, 202 GSC_CLIENTS_notify_clients_about_neighbour (&session->peer,
203 0 /* FIXME: ATSI */ ,
204 session->tmap, NULL); 203 session->tmap, NULL);
205 GNUNET_assert (GNUNET_YES == 204 GNUNET_assert (GNUNET_YES ==
206 GNUNET_CONTAINER_multihashmap_remove (sessions, 205 GNUNET_CONTAINER_multihashmap_remove (sessions,
@@ -280,7 +279,7 @@ GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer,
280 GNUNET_STATISTICS_set (GSC_stats, gettext_noop ("# peers connected"), 279 GNUNET_STATISTICS_set (GSC_stats, gettext_noop ("# peers connected"),
281 GNUNET_CONTAINER_multihashmap_size (sessions), 280 GNUNET_CONTAINER_multihashmap_size (sessions),
282 GNUNET_NO); 281 GNUNET_NO);
283 GSC_CLIENTS_notify_clients_about_neighbour (peer, NULL, 0 /* FIXME: ATSI */ , 282 GSC_CLIENTS_notify_clients_about_neighbour (peer,
284 NULL, session->tmap); 283 NULL, session->tmap);
285} 284}
286 285
@@ -300,7 +299,7 @@ notify_client_about_session (void *cls, const struct GNUNET_HashCode * key,
300 struct GSC_Client *client = cls; 299 struct GSC_Client *client = cls;
301 struct Session *session = value; 300 struct Session *session = value;
302 301
303 GSC_CLIENTS_notify_client_about_neighbour (client, &session->peer, NULL, 0, /* FIXME: ATS!? */ 302 GSC_CLIENTS_notify_client_about_neighbour (client, &session->peer,
304 NULL, /* old TMAP: none */ 303 NULL, /* old TMAP: none */
305 session->tmap); 304 session->tmap);
306 return GNUNET_OK; 305 return GNUNET_OK;
@@ -749,7 +748,7 @@ GSC_SESSIONS_set_typemap (const struct GNUNET_PeerIdentity *peer,
749 GNUNET_break (0); 748 GNUNET_break (0);
750 return; 749 return;
751 } 750 }
752 GSC_CLIENTS_notify_clients_about_neighbour (peer, NULL, 0, /* FIXME: ATS */ 751 GSC_CLIENTS_notify_clients_about_neighbour (peer,
753 session->tmap, nmap); 752 session->tmap, nmap);
754 GSC_TYPEMAP_destroy (session->tmap); 753 GSC_TYPEMAP_destroy (session->tmap);
755 session->tmap = nmap; 754 session->tmap = nmap;
@@ -778,7 +777,7 @@ GSC_SESSIONS_add_to_typemap (const struct GNUNET_PeerIdentity *peer,
778 if (GNUNET_YES == GSC_TYPEMAP_test_match (session->tmap, &type, 1)) 777 if (GNUNET_YES == GSC_TYPEMAP_test_match (session->tmap, &type, 1))
779 return; /* already in it */ 778 return; /* already in it */
780 nmap = GSC_TYPEMAP_extend (session->tmap, &type, 1); 779 nmap = GSC_TYPEMAP_extend (session->tmap, &type, 1);
781 GSC_CLIENTS_notify_clients_about_neighbour (peer, NULL, 0, /* FIXME: ATS */ 780 GSC_CLIENTS_notify_clients_about_neighbour (peer,
782 session->tmap, nmap); 781 session->tmap, nmap);
783 GSC_TYPEMAP_destroy (session->tmap); 782 GSC_TYPEMAP_destroy (session->tmap);
784 session->tmap = nmap; 783 session->tmap = nmap;