From 76af75789a0d42c36346f7a0efd9203ba2c19890 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 15 Nov 2013 15:28:22 +0000 Subject: [PATCH] - dead code --- src/mesh/gnunet-service-mesh_channel.c | 28 -------------------------- src/mesh/gnunet-service-mesh_channel.h | 15 -------------- 2 files changed, 43 deletions(-) diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c index 1f4e39ec9..0228e8532 100644 --- a/src/mesh/gnunet-service-mesh_channel.c +++ b/src/mesh/gnunet-service-mesh_channel.c @@ -1174,34 +1174,6 @@ GMCH_send_destroy (struct MeshChannel *ch) } -/** - * Send data on a channel. - * - * If the destination is local, send it to client, otherwise encrypt and - * send to next hop. - * - * @param ch Channel - * @param msg Message. - * @param fwd Is this a fwd (root->dest) message? - */ -void -GMCH_send_data (struct MeshChannel *ch, - const struct GNUNET_MESH_Data *msg, - int fwd) -{ - if (GMCH_is_terminal (ch, fwd)) - { - GML_send_data (fwd ? ch->dest : ch->root, - msg, - fwd ? ch->lid_dest : ch->lid_root); - } - else - { - GMT_send_prebuilt_message (&msg->header, ch->t, ch, fwd, NULL, NULL); - } -} - - /** * Send an end-to-end ACK message for the most recent in-sequence payload. * diff --git a/src/mesh/gnunet-service-mesh_channel.h b/src/mesh/gnunet-service-mesh_channel.h index c6e051356..461aef562 100644 --- a/src/mesh/gnunet-service-mesh_channel.h +++ b/src/mesh/gnunet-service-mesh_channel.h @@ -119,21 +119,6 @@ GMCH_is_origin (struct MeshChannel *ch, int fwd); int GMCH_is_terminal (struct MeshChannel *ch, int fwd); -/** - * Send data on a channel. - * - * If the destination is local, send it to client, otherwise encrypt and - * send to next hop. - * - * @param ch Channel - * @param msg Message. - * @param fwd Is this a fwd (root->dest) message? - */ -void -GMCH_send_data (struct MeshChannel *ch, - const struct GNUNET_MESH_Data *msg, - int fwd); - /** * Send an end-to-end ACK message for the most recent in-sequence payload. * -- 2.25.1