remove redundant code

This commit is contained in:
Yurui Zhou committed 2019-06-06 15:12:01 +08:00
1 parent e932aa8b11
commit e4c063041b
1 file changed
-11
-11
View File
@@ -119,17 +119,6 @@ std::shared_ptr<RecordBatchReader> GetStripeReader(jlong id) {
return orc_stripe_reader_holder_.Lookup(id);
}
int jstr_to_cstr(JNIEnv* env, jstring jstr, char* cstr, size_t cstr_len) {
int32_t jlen, clen;
clen = env->GetStringUTFLength(jstr);
if (clen > (int32_t)cstr_len) return -ENAMETOOLONG;
jlen = env->GetStringLength(jstr);
env->GetStringUTFRegion(jstr, 0, jlen, cstr);
if (env->ExceptionCheck()) return -EIO;
return 0;
}
std::string JStringToCString(JNIEnv* env, jstring string) {
int32_t jlen, clen;
clen = env->GetStringUTFLength(string);