mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8204663: clean up remaining native parts after JDK-8187631
Reviewed-by: rriggs, psandoz
This commit is contained in:
parent
0e39fb9304
commit
4d84004591
6 changed files with 0 additions and 33 deletions
|
@ -70,7 +70,3 @@ Java_java_io_FileOutputStream_writeBytes(JNIEnv *env,
|
|||
writeBytes(env, this, bytes, off, len, append, fos_fd);
|
||||
}
|
||||
|
||||
void JNICALL
|
||||
Java_java_io_FileOutputStream_close0(JNIEnv *env, jobject this) {
|
||||
fileClose(env, this, fos_fd);
|
||||
}
|
||||
|
|
|
@ -121,16 +121,6 @@ fileOpen(JNIEnv *env, jobject this, jstring path, jfieldID fid, int flags)
|
|||
} END_PLATFORM_STRING(env, ps);
|
||||
}
|
||||
|
||||
void
|
||||
fileClose(JNIEnv *env, jobject this, jfieldID fid)
|
||||
{
|
||||
jobject fileDescriptor = (*env)->GetObjectField(env, (this), (fid));
|
||||
if (fileDescriptor == NULL) {
|
||||
return;
|
||||
}
|
||||
fileDescriptorClose(env, fileDescriptor);
|
||||
}
|
||||
|
||||
// Function to close the fd held by this FileDescriptor and set fd to -1.
|
||||
void
|
||||
fileDescriptorClose(JNIEnv *env, jobject this)
|
||||
|
|
|
@ -99,10 +99,6 @@ FD handleOpen(const char *path, int oflag, int mode);
|
|||
} while((_result == -1) && (errno == EINTR)); \
|
||||
} while(0)
|
||||
|
||||
/*
|
||||
* IO helper function(s)
|
||||
*/
|
||||
void fileClose(JNIEnv *env, jobject this, jfieldID fid);
|
||||
void fileDescriptorClose(JNIEnv *env, jobject this);
|
||||
|
||||
#ifdef MACOSX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue