aboutsummaryrefslogtreecommitdiff
path: root/src/engine/graphics/window.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-22 17:05:00 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:59 +0200
commit7de921836587cdc359c2c4b84ed6446ada16c008 (patch)
treec4ec20b4769817c41ce7d939956da297bf787597 /src/engine/graphics/window.cpp
parent723ea6535b4c4e5605e5592137a898d6ffa458c1 (diff)
refactor: remove window class
Diffstat (limited to 'src/engine/graphics/window.cpp')
-rw-r--r--src/engine/graphics/window.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/engine/graphics/window.cpp b/src/engine/graphics/window.cpp
deleted file mode 100644
index bb33402..0000000
--- a/src/engine/graphics/window.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "window.hpp"
-
-#include <sys/ioctl.h>
-
-auto Window::size() const noexcept -> Bounds
-{
- winsize window_size = {};
-
- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
- ioctl(0, TIOCGWINSZ, &window_size);
-
- return Bounds({window_size.ws_col, window_size.ws_row});
-}