Skip to content

Commit

Permalink
Drop dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Nov 19, 2024
1 parent e72bacc commit af3388f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/server/scene/surface_stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ struct SurfaceDepthLayerObserver : ms::NullSurfaceObserver

ms::SurfaceStack::SurfaceStack(std::shared_ptr<SceneReport> const& report) :
report{report},
scene_changed{false},
surface_observer{std::make_shared<SurfaceDepthLayerObserver>(this)},
multiplexer(linearising_executor)
{
Expand All @@ -153,7 +152,6 @@ mc::SceneElementSequence ms::SurfaceStack::scene_elements_for(mc::CompositorID i
{
RecursiveReadLock lg(guard);

scene_changed = false;
mc::SceneElementSequence elements;
for (auto const& layer : surface_layers)
{
Expand Down Expand Up @@ -227,10 +225,6 @@ void ms::SurfaceStack::remove_input_visualization(

void ms::SurfaceStack::emit_scene_changed()
{
{
RecursiveWriteLock lg(guard);
scene_changed = true;
}
observers.scene_changed();
}

Expand Down
1 change: 0 additions & 1 deletion src/server/scene/surface_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ class SurfaceStack :
Observers observers;
/// If not expired the screen is locked (and only surfaces that appear on the lock screen should be shown)
std::atomic<bool> is_locked = false;
std::atomic<bool> scene_changed;
std::shared_ptr<SurfaceObserver> surface_observer;
SessionLockObserverMultiplexer multiplexer;
};
Expand Down

0 comments on commit af3388f

Please sign in to comment.