Code cleanup: remove NULL check
authorCampbell Barton <ideasman42@gmail.com>
Wed, 28 May 2014 16:27:51 +0000 (02:27 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 13 Jun 2014 14:47:11 +0000 (00:47 +1000)
intern/ghost/intern/GHOST_SystemWin32.cpp

index b58dccf9fd3d576b26e20d9394d876f002950507..3556ee4349c0db64d78aaac676ed2a7f6d8dc543 100644 (file)
@@ -425,15 +425,8 @@ GHOST_TSuccess GHOST_SystemWin32::exit()
 
 GHOST_TKey GHOST_SystemWin32::hardKey(GHOST_IWindow *window, RAWINPUT const& raw, int *keyDown, char *vk)
 {
-       GHOST_TKey key = GHOST_kKeyUnknown;
-
-
-       if (!keyDown)
-               return GHOST_kKeyUnknown;
-
-
        GHOST_SystemWin32 *system = (GHOST_SystemWin32 *)getSystem();
-
+       GHOST_TKey key = GHOST_kKeyUnknown;
        GHOST_ModifierKeys modifiers;
        system->retrieveModifierKeys(modifiers);