Skip to content

Commit

Permalink
removed redundand function
Browse files Browse the repository at this point in the history
  • Loading branch information
aardschok committed Sep 4, 2017
1 parent 0f527ce commit 78e437d
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions python/scriptsmenu/launchformaya.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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
Expand Down

0 comments on commit 78e437d

Please sign in to comment.