App: remove unimplemented (stubbed) binding API methods
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 5 Sep 2017 10:10:12 +0000 (12:10 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 5 Sep 2017 10:13:31 +0000 (12:13 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
generate-binding-glue.py
src/app.cpp

index 3fd0828..7e003a5 100644 (file)
@@ -127,12 +127,6 @@ API = {
                 ],
             },
             { 'name': 'list_drawing_names', },
-            {
-                'name': 'demo_activate_surface',
-                'args': [ { 'name': 'surfaceid', 'type': 'uint32_t', 'jtype': 'int' } ]
-            },
-
-            { 'name': 'demo_activate_all' },
 
             { 'name': 'debug_status', },
             { 'name': 'debug_layers', },
index e4a4c4d..a59adba 100644 (file)
@@ -431,16 +431,12 @@ char const *App::deactivate_surface(char const *drawing_name) {
 // | .__/|_|  \___/_/\_\_|\___|\__,_| |_____| \_/ \___|_| |_|\__|___/
 // |_|
 void App::surface_created(uint32_t surface_id) {
-   //surface_id >>= id_allocator::id_shift;
-
    logdebug("surface_id is %u", surface_id);
 
    this->surface_init_layout(surface_id);
 }
 
 void App::surface_removed(uint32_t surface_id) {
-   //surface_id >>= id_allocator::id_shift;
-
    logdebug("surface_id is %u", surface_id);
 
    this->id_alloc.remove_id(surface_id);
@@ -575,14 +571,6 @@ binding_api::result_type binding_api::debug_terminate() {
    return Ok(json_object_new_object());
 }
 
-binding_api::result_type binding_api::demo_activate_surface(uint32_t s) {
-   return Err<json_object *>("not implemented");
-}
-
-binding_api::result_type binding_api::demo_activate_all() {
-   return Err<json_object *>("not implemented");
-}
-
 //                  _             _ _            _                 _
 //   ___ ___  _ __ | |_ _ __ ___ | | | ___ _ __ | |__   ___   ___ | | _____
 //  / __/ _ \| '_ \| __| '__/ _ \| | |/ _ \ '__|| '_ \ / _ \ / _ \| |/ / __|