diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-13 12:48:07 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-14 14:04:51 +0200 |
commit | 5710504a95125fdf504c80ca6c445218514633fb (patch) | |
tree | c5a84a6e7b4bc3ccf8927571e69dd3877ae1360a /src/layers.cpp | |
parent | 340fc201bd6eaabc6b8df2f25bed70aca469967c (diff) |
layers: remove priority from split layout definition
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/layers.cpp')
-rw-r--r-- | src/layers.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/layers.cpp b/src/layers.cpp index 5b28c15..9219766 100644 --- a/src/layers.cpp +++ b/src/layers.cpp @@ -43,20 +43,14 @@ layer::layer(nlohmann::json const &j) { 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"], - sl.value<int>("priority", 0) - }; + sl["name"], sl["main_match"], sl["sub_match"] }; logdebug( "layer %d add split_layout \"%s\" (main: \"%s\") (sub: " - "\"%s\") (prio: %d)", this->layer_id, + "\"%s\")", this->layer_id, l.name.c_str(), l.main_match.c_str(), - l.sub_match.c_str(), l.prio); + l.sub_match.c_str()); return l; }); - //std::sort(std::begin(this->layouts), std::end(this->layouts), - // [](struct split_layout const &a, struct split_layout const &b) { - // return a.prio < b.prio; - // }); } } |