From f5afbffe64c248780376af7226b43f82941b7a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 21 Mar 2015 18:14:35 -0700 Subject: [PATCH] Fixed compiler warning. --- examples/common/entry/entry_osx.mm | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/common/entry/entry_osx.mm b/examples/common/entry/entry_osx.mm index b8560b5f2..89e7c4814 100644 --- a/examples/common/entry/entry_osx.mm +++ b/examples/common/entry/entry_osx.mm @@ -311,9 +311,6 @@ namespace entry else { enum { ShiftMask = Modifier::LeftShift|Modifier::RightShift }; - const bool nonShiftModifiers = (0 != (modifiers&(~ShiftMask) ) ); - const bool isCharPressed = (Key::Key0 <= key && key <= Key::KeyZ) || (Key::Esc <= key && key <= Key::Minus); - const bool isText = isCharPressed && !nonShiftModifiers; m_eventQueue.postCharEvent(s_defaultWindow, 1, pressedChar); m_eventQueue.postKeyEvent(s_defaultWindow, key, modifiers, true); return false;