aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96>2012-11-20 16:26:27 +0000
committerbartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96>2012-11-20 16:26:27 +0000
commitc5f0f697a3029cd22d6181f897d5b6e06d01a00b (patch)
tree180c41e1817dc85d141e94e4613d9600407ee87b
parentd9062c83e3234e87667dc18320169baf8c85fbe1 (diff)
- wrong copy&paste
git-svn-id: https://gnunet.org/svn/gnunet@25072 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r--src/mesh/test_mesh_tree_api.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mesh/test_mesh_tree_api.c b/src/mesh/test_mesh_tree_api.c
index bc824d61ac..3bdb82e0fc 100644
--- a/src/mesh/test_mesh_tree_api.c
+++ b/src/mesh/test_mesh_tree_api.c
@@ -86,33 +86,6 @@ test_debug (struct MeshTunnelTree *tree)
tree_iterate_all (tree, &tree_cb, NULL);
}
-/**
- * Iterator over a tunnel to build a message containing all peers the
- * tunnel's tree.
- *
- * @param cls Closure (pointer to pointer of message being built).
- * @param peer Short ID of a peer.
- * @param parent Short ID of the @c peer 's parent.
- *
- * @return GNUNET_YES, to keep iterating.
- */
-static int
-monitor_tunnel_iterator (void *cls,
- GNUNET_PEER_Id peer,
- GNUNET_PEER_Id parent)
-{
- struct GNUNET_MESH_LocalMonitor **msg = cls;
- struct GNUNET_PeerIdentity *pid;
- size_t size;
-
- size = ntohs (*msg->header.size);
- size += sizeof (struct GNUNET_PeerIdentity) * 2;
- *msg = GNUNET_realloc (*msg, size);
- *pid = &((*msg)[1]);
-
- return GNUNET_YES;
-}
-
/**
* Check if a node has all expected properties.