]> git.mdlowis.com Git - proto/labwc.git/commitdiff
menu: eliminate dead code
authortokyo4j <hrak1529@gmail.com>
Wed, 13 Nov 2024 23:30:55 +0000 (08:30 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 14 Nov 2024 06:11:13 +0000 (06:11 +0000)
The deleted lines were dead code that didn't make any sense (even if it
were not dead, it should have recreated the parent of the hidden menu
rather than the hidden menu itself).

src/menu/menu.c

index 0056b719542475d78f341b313ae70793279e6349..92c4d25df0d3ffbd3661e2356206fa78cfc7e2a0 100644 (file)
@@ -918,9 +918,6 @@ menu_hide_submenu(struct server *server, const char *id)
                        }
                }
        }
-       if (hide_menu->scene_tree) {
-               menu_update_scene(hide_menu);
-       }
 }
 
 static void