summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qmenu_mac.mm
diff options
context:
space:
mode:
authorMorten Sorvig <morten.sorvig@nokia.com>2011-10-19 14:23:45 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-23 10:23:23 +0200
commitf6e0a2f59f79ba6b20f2d4d00807d26b71fa9178 (patch)
tree3929c5179601ad15df2c5018882c9edeee34b442 /src/plugins/platforms/cocoa/qmenu_mac.mm
parent03fd37cdf403e35aaaab874be9bad033d250e39d (diff)
Cocoa: clean up compiler warnings.
Change-Id: I2cb65bb455b79b218a317b21e5a3b0d9792e0e22 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qmenu_mac.mm')
-rw-r--r--src/plugins/platforms/cocoa/qmenu_mac.mm9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/plugins/platforms/cocoa/qmenu_mac.mm b/src/plugins/platforms/cocoa/qmenu_mac.mm
index f62e4a9fd2..dde6464392 100644
--- a/src/plugins/platforms/cocoa/qmenu_mac.mm
+++ b/src/plugins/platforms/cocoa/qmenu_mac.mm
@@ -105,14 +105,6 @@ bool qt_mac_watchingAboutToShow(QMenu *menu)
return menu; /* && menu->receivers(SIGNAL(aboutToShow()));*/
}
-static int qt_mac_CountMenuItems(OSMenuRef menu)
-{
- if (menu) {
- return [menu numberOfItems];
- }
- return 0;
-}
-
void qt_mac_menu_collapseSeparators(NSMenu * theMenu, bool collapse)
{
QCocoaAutoReleasePool pool;
@@ -201,6 +193,7 @@ static void cancelAllMenuTracking()
static bool actualMenuItemVisibility(const QCocoaMenuBar *mbp,
const QCocoaMenuAction *action)
{
+ Q_UNUSED(mbp);
bool visible = action->action->isVisible();
if (visible && action->action->text() == QString(QChar(0x14)))
return false;