From ed41478d73a9972495f840fd854c439d92c5247b Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Wed, 27 Jun 2018 14:44:07 -0400 Subject: remove ping verb The ping verb was used in testing and is no longer needed. Remove it. Bug-AGL: SPEC-1540 Change-Id: Ia906c2b489f56188e87061ad675330dd29581f97 Signed-off-by: Matt Porter --- binding/network-api.c | 21 --------------------- 1 file changed, 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, -- cgit 1.2.3-korg