summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:39 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:39 +0200
commit19609464e573625fb82e55aa7e92d43d44f0b825 (patch)
treef590846ab79cbd778758d5c936f0128b985ecaf1
parent0c3f825eff4c28ebfeddb92d5dcbe42967b9b9ff (diff)
App: remove unused field layouts
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r--src/app.cpp5
-rw-r--r--src/app.hpp1
2 files changed, 0 insertions, 6 deletions
diff --git a/src/app.cpp b/src/app.cpp
index a4b22f5..80637a4 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -80,7 +80,6 @@ App::App(wl::display *d)
controller{},
outputs(),
config(),
- layouts(),
layers(),
id_alloc{},
pending_events(false),
@@ -230,7 +229,6 @@ int App::init_layers() {
logdebug(
"Setting up layer %s (%d) for surfaces %d-%d and role match \"%s\"",
i.name.c_str(), i.layer_id, i.id_min, i.id_max, i.role.c_str());
- this->layouts[l->id] = LayoutState{};
}
// Add layers to screen (XXX: are they sorted correctly?)
@@ -413,9 +411,6 @@ char const *App::api_activate_surface(char const *drawing_name) {
return "Surface already active";
}
- // This should involve a policy check, but as we do not (yet) have
- // such a thing, we will just switch to this surface.
- // XXX: input focus missing!!1
if (state.main == -1) {
this->try_layout(
diff --git a/src/app.hpp b/src/app.hpp
index ed27cf2..bc273f5 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -116,7 +116,6 @@ struct App {
struct config config;
// track current layouts separately
- std::map<int, struct LayoutState> layouts;
layer_map layers;
// ID allocation and proxy methods for lookup