From 31844bf42bc4b6549862ea4c4f077c1e19d9e7a1 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sat, 11 Aug 2018 15:36:19 +1000 Subject: Remove container_has_child In all cases you can use container_has_ancestor with the arguments swapped, which is faster than container_has_child. --- include/sway/tree/container.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include/sway/tree') diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 4d0e6003..799c017d 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h @@ -256,12 +256,6 @@ void container_for_each_descendant_dfs(struct sway_container *container, bool container_has_ancestor(struct sway_container *container, struct sway_container *ancestor); -/** - * Returns true if the given container is a child descendant of this container. - */ -bool container_has_child(struct sway_container *con, - struct sway_container *child); - int container_count_descendants_of_type(struct sway_container *con, enum sway_container_type type); -- cgit v1.2.3