From 75a77977de0d3a56b975033f0c09213c32b171f4 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 4 Feb 2020 12:02:22 -0800 Subject: binding: bluetooth: remove unused version verb No other applications/bindings check the version verb to figure which schema version to use. Bug-AGL: SPEC-3156 Change-Id: I5baea8d7a38101bc9378f90c40981e73074ed558 Signed-off-by: Matt Ranostay --- binding/bluetooth-api.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/binding/bluetooth-api.c b/binding/bluetooth-api.c index 48bc460..faa9e02 100644 --- a/binding/bluetooth-api.c +++ b/binding/bluetooth-api.c @@ -1303,15 +1303,6 @@ out_success: afb_req_success(request, NULL, "Bluetooth - AVRCP controls"); } -static void bluetooth_version(afb_req_t request) -{ - json_object *jresp = json_object_new_object(); - - json_object_object_add(jresp, "version", json_object_new_string("2.0")); - - afb_req_success(request, jresp, "Bluetooth - Binding version"); -} - static const afb_verb_t bluetooth_verbs[] = { { .verb = "subscribe", @@ -1373,11 +1364,6 @@ static const afb_verb_t bluetooth_verbs[] = { .session = AFB_SESSION_NONE, .callback = bluetooth_avrcp_controls, .info = "AVRCP controls" - }, { - .verb = "version", - .session = AFB_SESSION_NONE, - .callback = bluetooth_version, - .info = "Binding API version", }, { } /* marker for end of the array */ }; -- cgit 1.2.3-korg