8234821: remove unused functions from libjli

Reviewed-by: clanger, alanb
This commit is contained in:
Matthias Baesken 2019-11-28 13:02:39 +01:00
parent 4f0cc5ab4a
commit 673c732a33
6 changed files with 12 additions and 41 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -27,7 +27,7 @@
/*
* Find the last occurrence of a string
*/
char* findLastPathComponent(char *buffer, const char *comp) {
static char* findLastPathComponent(char *buffer, const char *comp) {
char* t = buffer;
char* p = NULL;
size_t l = JLI_StrLen(comp);
@ -47,7 +47,7 @@ char* findLastPathComponent(char *buffer, const char *comp) {
* Ex: if a buffer contains "/foo/bin/javac" or "/foo/bin/x64/javac", the
* truncated resulting buffer will contain "/foo".
*/
jboolean
static jboolean
TruncatePath(char *buf)
{
// try bin directory, maybe an executable

View file

@ -727,13 +727,6 @@ void* SplashProcAddress(const char* name) {
}
}
void SplashFreeLibrary() {
if (hSplashLib) {
dlclose(hSplashLib);
hSplashLib = NULL;
}
}
/*
* Signature adapter for pthread_create() or thr_create().
*/