[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/02: -unused functions
From: |
gnunet |
Subject: |
[gnunet] 01/02: -unused functions |
Date: |
Sun, 23 Oct 2022 08:09:26 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 91a82ed4aba961f8767ce20ecd20df6d394c1c10
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun Oct 23 15:05:19 2022 +0900
-unused functions
---
src/namestore/namestore_api.c | 57 -------------------------------------------
1 file changed, 57 deletions(-)
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index 5c6bf73eb..41c1fcc73 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -357,31 +357,6 @@ check_rd (size_t rd_len, const void *rd_buf, unsigned int
rd_count)
return GNUNET_OK;
}
-/**
- * Handle an incoming message of type
- * #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE
- *
- * @param cls
- * @param msg the message we received
- * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
- */
-static int
-check_record_store_response (void *cls,
- const struct RecordStoreResponseMessage *msg)
-{
- size_t msg_len;
-
- (void) cls;
- msg_len = ntohs (msg->gns_header.header.size);
- if (msg_len != sizeof(struct RecordStoreResponseMessage))
- {
- GNUNET_break (0);
- return GNUNET_SYSERR;
- }
- return GNUNET_OK;
-}
-
-
/**
* Handle an incoming message of type
* #GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE
@@ -671,38 +646,6 @@ handle_record_result_end (void *cls, const struct
GNUNET_NAMESTORE_Header *msg)
free_ze (ze);
}
-/**
- * Handle an incoming message of type
- * #GNUNET_MESSAGE_TYPE_NAMESTORE_TX_CONTROL_RESULT.
- *
- * @param qe the respective entry in the message queue
- * @param msg the message we received
- * @return #GNUNET_OK on success, #GNUNET_SYSERR if message malformed
- */
-static int
-check_tx_control_result (void *cls,
- const struct TxControlResultMessage *msg)
-{
- const char *err_tmp;
- size_t err_len;
-
- (void) cls;
- err_len = ntohs (msg->gns_header.header.size)
- - sizeof (struct TxControlResultMessage);
- if ((GNUNET_EC_NONE == ntohs (msg->ec)) && (err_len > 0))
- {
- GNUNET_break (0);
- return GNUNET_SYSERR;
- }
- err_tmp = (const char *) &msg[1];
- if ((err_len > 0) && ('\0' != err_tmp[err_len - 1]))
- {
- GNUNET_break (0);
- return GNUNET_SYSERR;
- }
- return GNUNET_OK;
-}
-
static void
handle_tx_control_result (void *cls,
const struct TxControlResultMessage *msg)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.