diff options
author | Julius Bünger <buenger@mytum.de> | 2018-10-25 14:43:07 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-10-29 18:05:43 +0100 |
commit | 255670708e5dd65327dd85d8cfb9f74c674167bc (patch) | |
tree | c1c2dbafb064b3b2730186124cfc5fe03c862387 /src/rps/gnunet-service-rps.c | |
parent | d269419d23e8c4c062e21e5bd88cdee66a1680b0 (diff) | |
download | gnunet-255670708e5dd65327dd85d8cfb9f74c674167bc.tar.gz gnunet-255670708e5dd65327dd85d8cfb9f74c674167bc.zip |
RPS service: cleanup (unused) data structures
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 288a79e7a..6d7f06090 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c | |||
@@ -953,7 +953,6 @@ remove_channel_ctx (struct ChannelCtx *channel_ctx) | |||
953 | struct GNUNET_CADET_Channel * | 953 | struct GNUNET_CADET_Channel * |
954 | get_channel (struct PeerContext *peer_ctx) | 954 | get_channel (struct PeerContext *peer_ctx) |
955 | { | 955 | { |
956 | struct GNUNET_PeerIdentity *ctx_peer; | ||
957 | /* There exists a copy-paste-clone in run() */ | 956 | /* There exists a copy-paste-clone in run() */ |
958 | struct GNUNET_MQ_MessageHandler cadet_handlers[] = { | 957 | struct GNUNET_MQ_MessageHandler cadet_handlers[] = { |
959 | GNUNET_MQ_hd_fixed_size (peer_check, | 958 | GNUNET_MQ_hd_fixed_size (peer_check, |
@@ -981,8 +980,6 @@ get_channel (struct PeerContext *peer_ctx) | |||
981 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 980 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
982 | "Trying to establish channel to peer %s\n", | 981 | "Trying to establish channel to peer %s\n", |
983 | GNUNET_i2s (&peer_ctx->peer_id)); | 982 | GNUNET_i2s (&peer_ctx->peer_id)); |
984 | ctx_peer = GNUNET_new (struct GNUNET_PeerIdentity); | ||
985 | *ctx_peer = peer_ctx->peer_id; | ||
986 | peer_ctx->send_channel_ctx = add_channel_ctx (peer_ctx); | 983 | peer_ctx->send_channel_ctx = add_channel_ctx (peer_ctx); |
987 | peer_ctx->send_channel_ctx->channel = | 984 | peer_ctx->send_channel_ctx->channel = |
988 | GNUNET_CADET_channel_create (cadet_handle, | 985 | GNUNET_CADET_channel_create (cadet_handle, |
@@ -1845,7 +1842,6 @@ handle_inbound_channel (void *cls, | |||
1845 | const struct GNUNET_PeerIdentity *initiator) | 1842 | const struct GNUNET_PeerIdentity *initiator) |
1846 | { | 1843 | { |
1847 | struct PeerContext *peer_ctx; | 1844 | struct PeerContext *peer_ctx; |
1848 | struct GNUNET_PeerIdentity *ctx_peer; | ||
1849 | struct ChannelCtx *channel_ctx; | 1845 | struct ChannelCtx *channel_ctx; |
1850 | struct Sub *sub = cls; | 1846 | struct Sub *sub = cls; |
1851 | 1847 | ||
@@ -1857,8 +1853,6 @@ handle_inbound_channel (void *cls, | |||
1857 | peer_ctx = create_or_get_peer_ctx (sub, initiator); | 1853 | peer_ctx = create_or_get_peer_ctx (sub, initiator); |
1858 | set_peer_online (peer_ctx); | 1854 | set_peer_online (peer_ctx); |
1859 | (void) add_valid_peer (&peer_ctx->peer_id, peer_ctx->sub->valid_peers); | 1855 | (void) add_valid_peer (&peer_ctx->peer_id, peer_ctx->sub->valid_peers); |
1860 | ctx_peer = GNUNET_new (struct GNUNET_PeerIdentity); | ||
1861 | *ctx_peer = *initiator; | ||
1862 | channel_ctx = add_channel_ctx (peer_ctx); | 1856 | channel_ctx = add_channel_ctx (peer_ctx); |
1863 | channel_ctx->channel = channel; | 1857 | channel_ctx->channel = channel; |
1864 | /* We only accept one incoming channel per peer */ | 1858 | /* We only accept one incoming channel per peer */ |
@@ -4487,7 +4481,6 @@ run (void *cls, | |||
4487 | const struct GNUNET_CONFIGURATION_Handle *c, | 4481 | const struct GNUNET_CONFIGURATION_Handle *c, |
4488 | struct GNUNET_SERVICE_Handle *service) | 4482 | struct GNUNET_SERVICE_Handle *service) |
4489 | { | 4483 | { |
4490 | char *fn_valid_peers; | ||
4491 | struct GNUNET_TIME_Relative round_interval; | 4484 | struct GNUNET_TIME_Relative round_interval; |
4492 | long long unsigned int sampler_size; | 4485 | long long unsigned int sampler_size; |
4493 | char hash_port_string[] = GNUNET_APPLICATION_PORT_RPS; | 4486 | char hash_port_string[] = GNUNET_APPLICATION_PORT_RPS; |