aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/gnunet-service-datastore.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-02-20 11:18:53 -0600
committerDavid Barksdale <amatus@amat.us>2017-02-20 11:21:29 -0600
commit4e96704538f882095eca84fed92a7811b299aca1 (patch)
tree2bcf0008f09aa3bc319bf2425f0f526b72fbc1ce /src/datastore/gnunet-service-datastore.c
parentf6f7fbbe98c110867febbcca647da8308be123c7 (diff)
downloadgnunet-4e96704538f882095eca84fed92a7811b299aca1.tar.gz
gnunet-4e96704538f882095eca84fed92a7811b299aca1.zip
Remove unused GNUNET_DATASTORE_update() API call
Diffstat (limited to 'src/datastore/gnunet-service-datastore.c')
-rw-r--r--src/datastore/gnunet-service-datastore.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c
index e632e33e0..6f1bd2b6d 100644
--- a/src/datastore/gnunet-service-datastore.c
+++ b/src/datastore/gnunet-service-datastore.c
@@ -1080,55 +1080,6 @@ handle_get_key (void *cls,
1080 1080
1081 1081
1082/** 1082/**
1083 * Function called with the result of an update operation.
1084 *
1085 * @param cls closure
1086 * @param status #GNUNET_OK or #GNUNET_SYSERR
1087 * @param msg error message on error
1088 */
1089static void
1090update_continuation (void *cls,
1091 int status,
1092 const char *msg)
1093{
1094 struct GNUNET_SERVICE_Client *client = cls;
1095
1096 transmit_status (client,
1097 status,
1098 msg);
1099}
1100
1101
1102/**
1103 * Handle UPDATE-message.
1104 *
1105 * @param cls client identification of the client
1106 * @param message the actual message
1107 */
1108static void
1109handle_update (void *cls,
1110 const struct UpdateMessage *msg)
1111{
1112 struct GNUNET_SERVICE_Client *client = cls;
1113
1114 GNUNET_STATISTICS_update (stats,
1115 gettext_noop ("# UPDATE requests received"),
1116 1,
1117 GNUNET_NO);
1118 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1119 "Processing UPDATE request for %llu\n",
1120 (unsigned long long) GNUNET_ntohll (msg->uid));
1121 plugin->api->update (plugin->api->cls,
1122 GNUNET_ntohll (msg->uid),
1123 (int32_t) ntohl (msg->priority),
1124 GNUNET_TIME_absolute_ntoh (msg->expiration),
1125 &update_continuation,
1126 client);
1127 GNUNET_SERVICE_client_continue (client);
1128}
1129
1130
1131/**
1132 * Handle GET_REPLICATION-message. 1083 * Handle GET_REPLICATION-message.
1133 * 1084 *
1134 * @param cls identification of the client 1085 * @param cls identification of the client
@@ -1857,10 +1808,6 @@ GNUNET_SERVICE_MAIN
1857 GNUNET_MESSAGE_TYPE_DATASTORE_PUT, 1808 GNUNET_MESSAGE_TYPE_DATASTORE_PUT,
1858 struct DataMessage, 1809 struct DataMessage,
1859 NULL), 1810 NULL),
1860 GNUNET_MQ_hd_fixed_size (update,
1861 GNUNET_MESSAGE_TYPE_DATASTORE_UPDATE,
1862 struct UpdateMessage,
1863 NULL),
1864 GNUNET_MQ_hd_fixed_size (get, 1811 GNUNET_MQ_hd_fixed_size (get,
1865 GNUNET_MESSAGE_TYPE_DATASTORE_GET, 1812 GNUNET_MESSAGE_TYPE_DATASTORE_GET,
1866 struct GetMessage, 1813 struct GetMessage,