diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-31 17:23:32 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-04 16:54:02 +0200 |
commit | 74826b4760a3946e3f196a00c6a9f292a810f855 (patch) | |
tree | bd703a9bbf0b9d6605405e84bd5b0cb45a787bc5 /src/wayland.cpp | |
parent | 89685c1f1e603d9a45ce0f3407c73e712dd7ad5a (diff) |
app: remove add_task/execute_pending support
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.cpp')
-rw-r--r-- | src/wayland.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp index df601eb..8e089c3 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -438,10 +438,8 @@ void controller::layer_screen(struct layer * /*l*/, struct wl_output *screen) { void controller::layer_destroyed(struct layer *l) { logdebug("genivi::layer %s @ %p", __func__, this->proxy.get()); - this->chooks->add_task("remove layer", [l, this] { - this->lprops.erase(l->id); - this->layers.erase(l->id); - }); + this->lprops.erase(l->id); + this->layers.erase(l->id); } // __ @@ -674,10 +672,8 @@ void controller::surface_content(struct surface *s, int32_t content_state) { if (content_state == IVI_CONTROLLER_SURFACE_CONTENT_STATE_CONTENT_REMOVED) { // XXX is this the right thing to do? this->chooks->surface_removed(s->id); - this->chooks->add_task("remove surface", [this, s] { - this->sprops.erase(s->id); - this->surfaces.erase(s->id); - }); + this->sprops.erase(s->id); + this->surfaces.erase(s->id); } } |