From 5f0801b6f245cc789ea93b9449dd0c573ef36e66 Mon Sep 17 00:00:00 2001
From: Alexander Orzechowski <alex@ozal.ski>
Date: Tue, 21 Feb 2023 20:58:17 -0500
Subject: container: Don't track outputs

The scene graph abstraction does this for us
---
 include/sway/surface.h        | 10 ----------
 include/sway/tree/container.h | 12 ------------
 2 files changed, 22 deletions(-)
 delete mode 100644 include/sway/surface.h

(limited to 'include')

diff --git a/include/sway/surface.h b/include/sway/surface.h
deleted file mode 100644
index 81eb80d5..00000000
--- a/include/sway/surface.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef _SWAY_SURFACE_H
-#define _SWAY_SURFACE_H
-#include <wlr/types/wlr_compositor.h>
-
-void surface_enter_output(struct wlr_surface *surface,
-	struct sway_output *output);
-void surface_leave_output(struct wlr_surface *surface,
-	struct sway_output *output);
-
-#endif
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 4cd4c847..37a6b2b3 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -125,9 +125,6 @@ struct sway_container {
 	double child_total_width;
 	double child_total_height;
 
-	// Outputs currently being intersected
-	list_t *outputs; // struct sway_output
-
 	// Indicates that the container is a scratchpad container.
 	// Both hidden and visible scratchpad containers have scratchpad=true.
 	// Hidden scratchpad containers have a NULL parent.
@@ -280,15 +277,6 @@ bool container_is_floating_or_child(struct sway_container *container);
  */
 bool container_is_fullscreen_or_child(struct sway_container *container);
 
-/**
- * Return the output which will be used for scale purposes.
- * This is the most recently entered output.
- * If the container is not on any output, return NULL.
- */
-struct sway_output *container_get_effective_output(struct sway_container *con);
-
-void container_discover_outputs(struct sway_container *con);
-
 enum sway_container_layout container_parent_layout(struct sway_container *con);
 
 list_t *container_get_siblings(struct sway_container *container);
-- 
cgit v1.2.3