mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8234821: remove unused functions from libjli
Reviewed-by: clanger, alanb
This commit is contained in:
parent
4f0cc5ab4a
commit
673c732a33
6 changed files with 12 additions and 41 deletions
|
@ -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
|
||||
|
|
|
@ -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().
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue