Code cleanup: remove NULL check

This commit is contained in:
Campbell Barton 2014-05-29 02:27:51 +10:00
parent a85b85101b
commit b72eca435e
1 changed files with 1 additions and 8 deletions

View 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);