summaryrefslogtreecommitdiff
path: root/src/set
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-18 09:06:41 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-18 09:06:41 +0100
commita0afe6fbcc277decf4680957abc77fba896cb567 (patch)
tree77a65bf7ef00283222b782bce2059f59d3a9c0eb /src/set
parente3cb893de32c0d29528283fe2a4644994dc2ba8a (diff)
fix compiler warnings
Diffstat (limited to 'src/set')
-rw-r--r--src/set/gnunet-service-set.c1
-rw-r--r--src/set/gnunet-service-set_union.c20
2 files changed, 0 insertions, 21 deletions
diff --git a/src/set/gnunet-service-set.c b/src/set/gnunet-service-set.c
index 0d47504d2..c71eb6edc 100644
--- a/src/set/gnunet-service-set.c
+++ b/src/set/gnunet-service-set.c
@@ -206,7 +206,6 @@ static void
incoming_destroy (struct Operation *op)
{
struct Listener *listener;
- struct GNUNET_CADET_Channel *channel;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Destroying incoming operation %p\n",
diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c
index 7d7ab27a5..8786807dc 100644
--- a/src/set/gnunet-service-set_union.c
+++ b/src/set/gnunet-service-set_union.c
@@ -1369,26 +1369,6 @@ send_client_element (struct Operation *op,
/**
- * Destroy remote channel.
- *
- * @param op operation
- */
-static void
-destroy_channel (struct Operation *op)
-{
- struct GNUNET_CADET_Channel *channel;
-
- if (NULL != (channel = op->channel))
- {
- /* This will free op; called conditionally as this helper function
- is also called from within the channel disconnect handler. */
- op->channel = NULL;
- GNUNET_CADET_channel_destroy (channel);
- }
-}
-
-
-/**
* Signal to the client that the operation has finished and
* destroy the operation.
*