Removed dead code

This commit is contained in:
Elias Naur 2003-02-08 16:33:00 +00:00
parent f05f16cc27
commit 6435369d23
1 changed files with 4 additions and 6 deletions

View File

@ -194,11 +194,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_input_Keyboard_nRead
int num_chars;
int num_events = 0;
do {
ret = lpdiKeyboard->Acquire();
if (ret != DI_OK && ret != S_FALSE)
return 0;
} while (ret != DI_OK && ret != S_FALSE);
ret = lpdiKeyboard->Acquire();
if (ret != DI_OK && ret != S_FALSE)
return 0;
ret = lpdiKeyboard->GetDeviceData(
sizeof(DIDEVICEOBJECTDATA),
@ -307,4 +305,4 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_input_Keyboard_nEnableBuffer
jobject newBuffer = env->NewDirectByteBuffer(&readBuffer, KEYBOARD_BUFFER_SIZE);
env->SetStaticObjectField(clazz, fid_readBuffer, newBuffer);
return KEYBOARD_BUFFER_SIZE;
}
}