@@ -1227,27 +1227,6 @@ bool activate_node(output_t *m, desktop_t *d, node_t *n) {
12271227 return focus_node_impl (m , d , n , on_current_desktop );
12281228}
12291229
1230- bool is_adjacent (node_t * a , node_t * b , direction_t dir ) {
1231- if (a == NULL || b == NULL )
1232- return false;
1233-
1234- struct wlr_box ra = a -> rectangle ;
1235- struct wlr_box rb = b -> rectangle ;
1236-
1237- switch (dir ) {
1238- case DIR_WEST :
1239- return ra .x == rb .x + rb .width ;
1240- case DIR_EAST :
1241- return ra .x + ra .width == rb .x ;
1242- case DIR_NORTH :
1243- return ra .y + ra .height == rb .y ;
1244- case DIR_SOUTH :
1245- return ra .y == rb .y + rb .height ;
1246- }
1247-
1248- return false;
1249- }
1250-
12511230node_t * find_fence (node_t * n , direction_t dir ) {
12521231 if (n == NULL )
12531232 return NULL ;
@@ -1515,24 +1494,6 @@ void node_set_dirty(node_t *n) {
15151494 transaction_add_dirty_node (n );
15161495}
15171496
1518- void node_set_pending_size (node_t * n , int width , int height ) {
1519- if (!n )
1520- return ;
1521-
1522- n -> pending .rectangle .width = width ;
1523- n -> pending .rectangle .height = height ;
1524- node_set_dirty (n );
1525- }
1526-
1527- void node_set_pending_position (node_t * n , int x , int y ) {
1528- if (!n )
1529- return ;
1530-
1531- n -> pending .rectangle .x = x ;
1532- n -> pending .rectangle .y = y ;
1533- node_set_dirty (n );
1534- }
1535-
15361497void node_set_pending_rectangle (node_t * n , struct wlr_box rect ) {
15371498 if (!n )
15381499 return ;
@@ -1541,14 +1502,6 @@ void node_set_pending_rectangle(node_t *n, struct wlr_box rect) {
15411502 node_set_dirty (n );
15421503}
15431504
1544- void node_set_pending_hidden (node_t * n , bool hidden ) {
1545- if (!n )
1546- return ;
1547-
1548- n -> pending .hidden = hidden ;
1549- node_set_dirty (n );
1550- }
1551-
15521505struct wlr_scene_tree * client_get_scene_tree (client_t * client ) {
15531506 if (!client )
15541507 return NULL ;
0 commit comments