summaryrefslogtreecommitdiffstats
path: root/binding
diff options
context:
space:
mode:
Diffstat (limited to 'binding')
-rw-r--r--binding/network-api.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/binding/network-api.c b/binding/network-api.c
index 3c4cf29..57add98 100644
--- a/binding/network-api.c
+++ b/binding/network-api.c
@@ -1060,22 +1060,6 @@ static int init(void)
return id->rc;
}
-static void network_ping(struct afb_req request)
-{
- struct network_state *ns = global_ns;
- json_object *jresp = json_object_new_object();
- json_object *jev = json_object_new_object();
-
- /* push fake counter event */
- ns->ping_counter++;
- jev = json_object_new_object();
- json_object_object_add(jev, "counter",
- json_object_new_int(ns->ping_counter));
- afb_event_push(ns->counter_event, jev);
-
- afb_req_success(request, jresp, "Network binding - pong");
-}
-
static void network_subscribe_unsubscribe(struct afb_req request,
gboolean unsub)
{
@@ -1781,11 +1765,6 @@ static void network_agent_response(struct afb_req request)
static const struct afb_verb_v2 network_verbs[] = {
{
- .verb = "ping",
- .session = AFB_SESSION_NONE,
- .callback = network_ping,
- .info ="Check if binding is alive"
- }, {
.verb = "subscribe",
.session = AFB_SESSION_NONE,
.callback = network_subscribe,