diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-11-15 15:28:22 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-11-15 15:28:22 +0000 |
commit | 76af75789a0d42c36346f7a0efd9203ba2c19890 (patch) | |
tree | 671a51a6ee2012a6bda441d39a5d1683ee16f3fb | |
parent | 33fe964b466bb0b03a9d176fd1e95e1e24771f2b (diff) | |
download | gnunet-76af75789a0d42c36346f7a0efd9203ba2c19890.tar.gz gnunet-76af75789a0d42c36346f7a0efd9203ba2c19890.zip |
- dead code
-rw-r--r-- | src/mesh/gnunet-service-mesh_channel.c | 28 | ||||
-rw-r--r-- | src/mesh/gnunet-service-mesh_channel.h | 15 |
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 | */ | ||
1187 | void | ||
1188 | GMCH_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 | |||
120 | GMCH_is_terminal (struct MeshChannel *ch, int fwd); | 120 | GMCH_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 | */ | ||
132 | void | ||
133 | GMCH_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. |