- move code to regex_dht
authorBart Polot <bart@net.in.tum.de>
Mon, 21 Jan 2013 16:27:24 +0000 (16:27 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 21 Jan 2013 16:27:24 +0000 (16:27 +0000)
src/mesh/gnunet-service-mesh.c

index 208c326a51304fd43ca9157519ce0976baf41194..f5d323a3549cae753e7f031aeb274554b89e1ca1 100644 (file)
@@ -7195,7 +7195,6 @@ handle_local_connect_by_string (void *cls, struct GNUNET_SERVER_Client *client,
 {
   struct GNUNET_MESH_ConnectPeerByString *msg;
   struct MeshRegexSearchInfo *info;
-  struct GNUNET_HashCode key;
   struct MeshTunnel *t;
   struct MeshClient *c;
   MESH_TunnelNumber tid;
@@ -7261,13 +7260,6 @@ handle_local_connect_by_string (void *cls, struct GNUNET_SERVER_Client *client,
   len = size - sizeof(struct GNUNET_MESH_ConnectPeerByString);
   string = (const char *) &msg[1];
 
-  /* Initialize context */
-  size = GNUNET_REGEX_get_first_key (string, len, &key);
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "  consumed %u bits out of %u\n", size, len);
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "  looking for %s\n", GNUNET_h2s (&key));
-
   info = GNUNET_malloc (sizeof (struct MeshRegexSearchInfo));
   info->t = t;
   info->description = GNUNET_strndup (string, len);