From 78e437de24e0f25a99907d07de4255e88ba155e4 Mon Sep 17 00:00:00 2001 From: aardschok Date: Mon, 4 Sep 2017 14:25:19 +0200 Subject: [PATCH] removed redundand function --- python/scriptsmenu/launchformaya.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/python/scriptsmenu/launchformaya.py b/python/scriptsmenu/launchformaya.py index 6e13566..5bef53c 100644 --- a/python/scriptsmenu/launchformaya.py +++ b/python/scriptsmenu/launchformaya.py @@ -30,7 +30,7 @@ def to_shelf(action): parent=current_active_shelf, image=action.iconfile or "pythonFamily.png", annotation=action.statusTip(), - imageOverlayLabel=action.label or '') + imageOverlayLabel=action.label or "") def _maya_main_window(): @@ -52,23 +52,6 @@ def _maya_main_menubar(): return menubar[0] -def _check_title(menu): - """Wrapped try and except to retrieve the name of the menu - :param menu: the menu to get the title from - :type menu: QtWidgets.QMenu instance - - :return: title - """ - title = None - try: - title = menu.title() - except Exception as e: - log.debug(e) - pass - - return title - - def _find_scripts_menu(title, parent): """ Check if the menu exists with the given title in the parent