Removed uses of deprecated functions (#709)

This commit is contained in:
Tyler Veness
2017-11-08 21:29:29 -08:00
committed by Peter Johnson
parent 8b2e656bde
commit 1276489961
7 changed files with 11 additions and 33 deletions

View File

@@ -358,22 +358,6 @@ Java_edu_wpi_first_wpilibj_hal_HAL_getBrownedOut(JNIEnv* env, jclass) {
return val;
}
/*
* Class: edu_wpi_first_wpilibj_hal_HAL
* Method: HAL_SetErrorData
* Signature: (Ljava/lang/String;)I
*/
JNIEXPORT jint JNICALL
Java_edu_wpi_first_wpilibj_hal_HAL_setErrorData(JNIEnv* env, jclass,
jstring error) {
JStringRef errorStr{env, error};
NETCOMM_LOG(logDEBUG) << "Set Error: " << errorStr.c_str();
NETCOMM_LOG(logDEBUG) << "Length: " << errorStr.size();
jint returnValue = HAL_SetErrorData(errorStr.c_str(), (int32_t)errorStr.size(), 0);
return returnValue;
}
/*
* Class: edu_wpi_first_wpilibj_hal_HAL
* Method: HAL_SendError