aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
deleted file mode 100644
index fbefc5e..0000000
--- a/src/screen.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "screen.h"
-
-#include <ncurses.h>
-
-void
-Screen::addWindow(const std::string &key, std::shared_ptr<Boxii::Window> value)
-{
- m_windows.emplace(key, value);
- m_order.push_back(std::weak_ptr<Boxii::Window>(value));
-}
-
-void
-Screen::render()
-{
- for(auto it = m_order.begin(); it != m_order.end(); it++){
- if(auto obs = it->lock()){
- if(m_redraw) obs->setRedraw();
- obs->refresh();
- }else{
- m_order.erase(it--);
- }
- }
- m_redraw = false;
-}