summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXMenubutton.c
diff options
context:
space:
mode:
authordas <das>2008-12-07 16:36:26 (GMT)
committerdas <das>2008-12-07 16:36:26 (GMT)
commit229640003624b9acf35b7559855fc8e418596943 (patch)
tree8343c03839d48107a18cd481a76218ca027be613 /macosx/tkMacOSXMenubutton.c
parent60d0a500c50280e9919498d5ff61635de5e1d453 (diff)
downloadtk-229640003624b9acf35b7559855fc8e418596943.zip
tk-229640003624b9acf35b7559855fc8e418596943.tar.gz
tk-229640003624b9acf35b7559855fc8e418596943.tar.bz2
Remove/disable dead code flagged by clang static analyzer
Diffstat (limited to 'macosx/tkMacOSXMenubutton.c')
-rw-r--r--macosx/tkMacOSXMenubutton.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/macosx/tkMacOSXMenubutton.c b/macosx/tkMacOSXMenubutton.c
index ee13904..70d85a5 100644
--- a/macosx/tkMacOSXMenubutton.c
+++ b/macosx/tkMacOSXMenubutton.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXMenubutton.c,v 1.19 2008/11/08 18:44:40 dkf Exp $
+ * RCS: @(#) $Id: tkMacOSXMenubutton.c,v 1.20 2008/12/07 16:36:26 das Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -446,7 +446,7 @@ void
TkpComputeMenuButtonGeometry(
register TkMenuButton *mbPtr) /* Widget record for menu button. */
{
- int width, height, mm, pixels;
+ int width, height;
int hasImageOrBitmap = 0;
mbPtr->inset = mbPtr->highlightWidth + mbPtr->borderWidth;
@@ -490,8 +490,6 @@ TkpComputeMenuButtonGeometry(
width += TK_POPUP_OFFSET;
}
if (mbPtr->indicatorOn) {
- mm = WidthMMOfScreen(Tk_Screen(mbPtr->tkwin));
- pixels = WidthOfScreen(Tk_Screen(mbPtr->tkwin));
mbPtr->indicatorHeight = kTriangleHeight;
mbPtr->indicatorWidth = kTriangleWidth + kTriangleMargin;
width += mbPtr->indicatorWidth;