popupMenu: Remove unused function