diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-10-04 10:39:37 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2019-01-29 10:35:07 +0900 |
commit | 231c489591095d294b93244e388abdf39debd983 (patch) | |
tree | 60271c25f6198a10c33d19d40cfc2d0c3019e2e4 /src/layers.cpp | |
parent | b9eac3cd4c955a84f1b381f15dc6d3f53035a309 (diff) |
Clean: Remove split_layout structure
split_layout is not used anymore.
Change-Id: Iff24ebb4e827aee28394deb3aa55c96692cd0cc6
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/layers.cpp')
-rw-r--r-- | src/layers.cpp | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/src/layers.cpp b/src/layers.cpp index 21d975d..c74f425 100644 --- a/src/layers.cpp +++ b/src/layers.cpp @@ -33,35 +33,7 @@ layer::layer(nlohmann::json const &j) this->name = j["name"]; this->layer_id = j["layer_id"]; - // Init flag of normal layout only - this->is_normal_layout_only = true; - - auto split_layouts = j.find("split_layouts"); - if (split_layouts != j.end()) - { - - // Clear flag of normal layout only - this->is_normal_layout_only = false; - - auto &sls = j["split_layouts"]; - // this->layouts.reserve(sls.size()); - std::transform(std::cbegin(sls), std::cend(sls), - std::back_inserter(this->layouts), [this](json const &sl) { - struct split_layout l - { - sl["name"], sl["main_match"], sl["sub_match"] - }; - HMI_DEBUG("wm", - "layer %d add split_layout \"%s\" (main: \"%s\") (sub: " - "\"%s\")", - this->layer_id, - l.name.c_str(), l.main_match.c_str(), - l.sub_match.c_str()); - return l; - }); - } - HMI_DEBUG("wm", "layer_id:%d is_normal_layout_only:%d\n", - this->layer_id, this->is_normal_layout_only); + HMI_DEBUG("wm", "layer_id:%d name:%s", this->layer_id, this->name.c_str()); } struct result<struct layer_map> to_layer_map(nlohmann::json const &j) |