commit c9ca77798e93db9f08c4e6085429882d73e67321 parent 9135191d4c7f7cf10114158989a4e2a7eebad1ef Author: Christian Grothoff <christian@grothoff.org> Date: Sat, 26 Oct 2013 07:16:38 +0000 -eliminate dead code Diffstat:
| M | src/namestore/gnunet-service-namestore.c | | | 2 | +- |
| M | src/namestore/namestore.h | | | 93 | ------------------------------------------------------------------------------- |
2 files changed, 1 insertion(+), 94 deletions(-)
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c @@ -1022,7 +1022,7 @@ enum ZoneIterationResult /** * Context for record remove operations passed from - * #run_zone_iteration_round to #zone_iteraterate_proc as closure + * #run_zone_iteration_round to #zone_iterate_proc as closure */ struct ZoneIterationProcResult { diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h @@ -53,99 +53,6 @@ struct GNUNET_NAMESTORE_Header /** - * Lookup a block in the namestore - */ -struct LookupBlockMessage -{ - /** - * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_BLOCK - */ - struct GNUNET_NAMESTORE_Header gns_header; - - /** - * The query. - */ - struct GNUNET_HashCode query GNUNET_PACKED; - -}; - - -/** - * Lookup response - */ -struct LookupBlockResponseMessage -{ - /** - * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_BLOCK_RESPONSE - */ - struct GNUNET_NAMESTORE_Header gns_header; - - /** - * Expiration time - */ - struct GNUNET_TIME_AbsoluteNBO expire; - - /** - * Signature. - */ - struct GNUNET_CRYPTO_EcdsaSignature signature; - - /** - * Derived public key. - */ - struct GNUNET_CRYPTO_EcdsaPublicKey derived_key; - - /* followed by encrypted block data */ -}; - - -/** - * Cache a record in the namestore. - */ -struct BlockCacheMessage -{ - /** - * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE - */ - struct GNUNET_NAMESTORE_Header gns_header; - - /** - * Expiration time - */ - struct GNUNET_TIME_AbsoluteNBO expire; - - /** - * Signature. - */ - struct GNUNET_CRYPTO_EcdsaSignature signature; - - /** - * Derived public key. - */ - struct GNUNET_CRYPTO_EcdsaPublicKey derived_key; - - /* follwed by encrypted block data */ -}; - - -/** - * Response to a request to cache a block. - */ -struct BlockCacheResponseMessage -{ - /** - * Type will be #GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE - */ - struct GNUNET_NAMESTORE_Header gns_header; - - /** - * #GNUNET_OK on success, #GNUNET_SYSERR error - */ - int32_t op_result GNUNET_PACKED; -}; - - -/** * Store a record to the namestore (as authority). */ struct RecordStoreMessage