summaryrefslogtreecommitdiff
path: root/src/App.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-07-19 14:03:42 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-07-19 14:03:48 -0700
commit2e9ee1645536fade0a7fdb531b1326055c7b7dff (patch)
treefbf027129297a352bee90e350ad31fbcfd85b5d9 /src/App.zig
parentaa7cceebe96ee4ff73c953816478acd3383e59bd (diff)
core: remove Surface.shouldClose
This was a noop in all of our apprts and I think is a holdover from the glfw days.
Diffstat (limited to 'src/App.zig')
-rw-r--r--src/App.zig12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/App.zig b/src/App.zig
index effef0c5f..69667dcb9 100644
--- a/src/App.zig
+++ b/src/App.zig
@@ -132,18 +132,6 @@ pub fn destroy(self: *App) void {
/// events. This should be called by the application runtime on every loop
/// tick.
pub fn tick(self: *App, rt_app: *apprt.App) !void {
- // If any surfaces are closing, destroy them
- var i: usize = 0;
- while (i < self.surfaces.items.len) {
- const surface = self.surfaces.items[i];
- if (surface.shouldClose()) {
- surface.close(false);
- continue;
- }
-
- i += 1;
- }
-
// Drain our mailbox
try self.drainMailbox(rt_app);
}