RFR: 8293064: Remove unused NET_xxx functions

Daniel Jeliński djelinski at openjdk.org
Mon Sep 19 17:18:48 UTC 2022


On Mon, 19 Sep 2022 14:32:24 GMT, Darragh Clarke <duke at openjdk.org> wrote:

> No tests were affected so this is purely a removal PR apart from updating copyright headers.
> I ran tests for Tier 1,2&3 and everything seems to be passing

Changes requested by djelinski (Committer).

src/java.base/share/native/libnet/net_util.h line 112:

> 110: JNIEXPORT void JNICALL NET_ThrowNew(JNIEnv *env, int errorNum, char *msg);
> 111: 
> 112: void NET_ThrowCurrent(JNIEnv *env, char *msg);

remove this from c files as well

src/java.base/windows/native/libnet/net_util_md.h line 121:

> 119: )
> 120: 
> 121: JNIEXPORT int JNICALL NET_SocketClose(int fd);

remove from c file as well

src/java.base/windows/native/libnet/net_util_md.h line 123:

> 121: JNIEXPORT int JNICALL NET_SocketClose(int fd);
> 122: 
> 123: JNIEXPORT int JNICALL NET_Timeout(int fd, long timeout);

also remove NET_Timeout2 and NET_BindV6

-------------

PR: https://git.openjdk.org/jdk/pull/10343


More information about the net-dev mailing list