diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-31 16:23:02 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-31 16:23:02 (GMT) |
commit | e9be26a5cd7994354c11df68142dedd1ad385705 (patch) | |
tree | bd02a897f2184d1fe0cfee364d84fe3f71b7c088 /macosx/tkMacOSXMouseEvent.c | |
parent | c280ebcafcb45b2fb405703d10d2a8b93c377ca7 (diff) | |
download | tk-e9be26a5cd7994354c11df68142dedd1ad385705.zip tk-e9be26a5cd7994354c11df68142dedd1ad385705.tar.gz tk-e9be26a5cd7994354c11df68142dedd1ad385705.tar.bz2 |
Remove obsolete code
Diffstat (limited to 'macosx/tkMacOSXMouseEvent.c')
-rw-r--r-- | macosx/tkMacOSXMouseEvent.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/macosx/tkMacOSXMouseEvent.c b/macosx/tkMacOSXMouseEvent.c index f274a07..99505ca 100644 --- a/macosx/tkMacOSXMouseEvent.c +++ b/macosx/tkMacOSXMouseEvent.c @@ -56,10 +56,6 @@ enum { Tk_Window tkwin; NSPoint local, global; NSInteger button = -1; -#if 0 - NSTrackingArea *trackingArea = nil; - NSInteger eventNumber, clickCount, buttonNumber; -#endif [NSEvent stopPeriodicEvents]; #ifdef TK_MAC_DEBUG_EVENTS @@ -314,34 +310,6 @@ enum { /* *---------------------------------------------------------------------- * - * TkMacOSXKeyModifiers -- - * - * Returns the current state of the modifier keys. - * - * Results: - * An OS Modifier state. - * - * Side effects: - * None. - * - *---------------------------------------------------------------------- - */ - -EventModifiers -TkMacOSXModifierState(void) -{ - UInt32 keyModifiers; - int isFrontProcess = (GetCurrentEvent() && Tk_MacOSXIsAppInFront()); - - keyModifiers = isFrontProcess ? GetCurrentEventKeyModifiers() : - GetCurrentKeyModifiers(); - - return (EventModifiers) (keyModifiers & USHRT_MAX); -} - -/* - *---------------------------------------------------------------------- - * * TkMacOSXButtonKeyState -- * * Returns the current state of the button & modifier keys. |