diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-05-08 16:50:57 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-05-08 16:50:57 +0000 |
commit | 3dc32590513ccf54a8d1ab51eb0a5376e9c56413 (patch) | |
tree | e8a712f1c2418838cd6f44cb8aeaf09d052d06e9 | |
parent | 07ec41e414c2e47df842b83acc481c257ce4de15 (diff) | |
download | gnunet-3dc32590513ccf54a8d1ab51eb0a5376e9c56413.tar.gz gnunet-3dc32590513ccf54a8d1ab51eb0a5376e9c56413.zip |
- remove regex client-side
-rw-r--r-- | src/mesh/gnunet-service-mesh-new.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c index 92215d44b..205830281 100644 --- a/src/mesh/gnunet-service-mesh-new.c +++ b/src/mesh/gnunet-service-mesh-new.c | |||
@@ -635,26 +635,6 @@ struct MeshClient | |||
635 | * ID of the client, mainly for debug messages | 635 | * ID of the client, mainly for debug messages |
636 | */ | 636 | */ |
637 | unsigned int id; | 637 | unsigned int id; |
638 | |||
639 | /** | ||
640 | * Regular expressions describing the services offered by this client. | ||
641 | */ | ||
642 | struct MeshRegexDescriptor *regexes; // FIXME regex add timeout? API to remove a regex? | ||
643 | |||
644 | /** | ||
645 | * Number of regular expressions in regexes. | ||
646 | */ | ||
647 | unsigned int n_regex; | ||
648 | |||
649 | /** | ||
650 | * Task to refresh all regular expresions in the DHT. | ||
651 | */ | ||
652 | GNUNET_SCHEDULER_TaskIdentifier regex_announce_task; | ||
653 | |||
654 | /** | ||
655 | * Tmp store for partially retrieved regex. | ||
656 | */ | ||
657 | char *partial_regex; | ||
658 | 638 | ||
659 | }; | 639 | }; |
660 | 640 | ||
@@ -5089,15 +5069,6 @@ handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) | |||
5089 | 5069 | ||
5090 | if (NULL != c->types) | 5070 | if (NULL != c->types) |
5091 | GNUNET_CONTAINER_multihashmap_destroy (c->types); | 5071 | GNUNET_CONTAINER_multihashmap_destroy (c->types); |
5092 | for (i = 0; i < c->n_regex; i++) | ||
5093 | { | ||
5094 | GNUNET_free (c->regexes[i].regex); | ||
5095 | if (NULL != c->regexes[i].h) | ||
5096 | GNUNET_REGEX_announce_cancel (c->regexes[i].h); | ||
5097 | } | ||
5098 | GNUNET_free_non_null (c->regexes); | ||
5099 | if (GNUNET_SCHEDULER_NO_TASK != c->regex_announce_task) | ||
5100 | GNUNET_SCHEDULER_cancel (c->regex_announce_task); | ||
5101 | next = c->next; | 5072 | next = c->next; |
5102 | GNUNET_CONTAINER_DLL_remove (clients, clients_tail, c); | 5073 | GNUNET_CONTAINER_DLL_remove (clients, clients_tail, c); |
5103 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " CLIENT FREE at %p\n", c); | 5074 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " CLIENT FREE at %p\n", c); |