aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-11-15 15:28:22 +0000
committerBart Polot <bart@net.in.tum.de>2013-11-15 15:28:22 +0000
commit76af75789a0d42c36346f7a0efd9203ba2c19890 (patch)
tree671a51a6ee2012a6bda441d39a5d1683ee16f3fb
parent33fe964b466bb0b03a9d176fd1e95e1e24771f2b (diff)
downloadgnunet-76af75789a0d42c36346f7a0efd9203ba2c19890.tar.gz
gnunet-76af75789a0d42c36346f7a0efd9203ba2c19890.zip
- dead code
-rw-r--r--src/mesh/gnunet-service-mesh_channel.c28
-rw-r--r--src/mesh/gnunet-service-mesh_channel.h15
2 files changed, 0 insertions, 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
@@ -1175,34 +1175,6 @@ GMCH_send_destroy (struct MeshChannel *ch)
1175 1175
1176 1176
1177/** 1177/**
1178 * Send data on a channel.
1179 *
1180 * If the destination is local, send it to client, otherwise encrypt and
1181 * send to next hop.
1182 *
1183 * @param ch Channel
1184 * @param msg Message.
1185 * @param fwd Is this a fwd (root->dest) message?
1186 */
1187void
1188GMCH_send_data (struct MeshChannel *ch,
1189 const struct GNUNET_MESH_Data *msg,
1190 int fwd)
1191{
1192 if (GMCH_is_terminal (ch, fwd))
1193 {
1194 GML_send_data (fwd ? ch->dest : ch->root,
1195 msg,
1196 fwd ? ch->lid_dest : ch->lid_root);
1197 }
1198 else
1199 {
1200 GMT_send_prebuilt_message (&msg->header, ch->t, ch, fwd, NULL, NULL);
1201 }
1202}
1203
1204
1205/**
1206 * Send an end-to-end ACK message for the most recent in-sequence payload. 1178 * Send an end-to-end ACK message for the most recent in-sequence payload.
1207 * 1179 *
1208 * If channel is not reliable, do nothing. 1180 * If channel is not reliable, do nothing.
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
@@ -120,21 +120,6 @@ int
120GMCH_is_terminal (struct MeshChannel *ch, int fwd); 120GMCH_is_terminal (struct MeshChannel *ch, int fwd);
121 121
122/** 122/**
123 * Send data on a channel.
124 *
125 * If the destination is local, send it to client, otherwise encrypt and
126 * send to next hop.
127 *
128 * @param ch Channel
129 * @param msg Message.
130 * @param fwd Is this a fwd (root->dest) message?
131 */
132void
133GMCH_send_data (struct MeshChannel *ch,
134 const struct GNUNET_MESH_Data *msg,
135 int fwd);
136
137/**
138 * Send an end-to-end ACK message for the most recent in-sequence payload. 123 * Send an end-to-end ACK message for the most recent in-sequence payload.
139 * 124 *
140 * If channel is not reliable, do nothing. 125 * If channel is not reliable, do nothing.