X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.cpp;fp=src%2Fapp.cpp;h=f509be0dd129fbf9581e5bdd1a63401bf5485693;hb=0f8ae2ce27e185fb37cf6bdde6644807c32abf73;hp=c9bb103bc7923b770b899ba7e816d48708b9dee7;hpb=66318aeba09afafc5cc2a476d1db4d5765f38d58;p=apps%2Fagl-service-windowmanager.git diff --git a/src/app.cpp b/src/app.cpp index c9bb103..f509be0 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -649,15 +649,6 @@ WMError App::setInvisibleTask(const std::string &role, bool split) if (state.main == -1) { HMI_DEBUG("wm", "Layout: %s", kNameLayoutNormal); - //state = LayoutState{*surface_id}; - /* this->try_layout( - state, LayoutState{*surface_id}, [&](LayoutState const &nl) { - HMI_DEBUG("wm", "Layout: %s", kNameLayoutNormal); - //this->surface_set_layout(*surface_id); - state = nl; - - //compositor::rect area_rect = this->area_info[*surface_id]; - }); */ } else { @@ -1530,16 +1521,6 @@ bool App::can_split(struct LayoutState const &state, int new_id) return false; } -void App::try_layout(struct LayoutState & /*state*/, - struct LayoutState const &new_layout, - std::function apply) -{ - if (this->policy.layout_is_valid(new_layout)) - { - apply(new_layout); - } -} - /** * controller_hooks */