8273877: os::unsetenv unused

Reviewed-by: mdoerr, stuefe
This commit is contained in:
Matthias Baesken 2021-09-17 12:53:38 +00:00
parent 35f6f1d69f
commit 27d747ad4f
3 changed files with 0 additions and 13 deletions

View File

@ -160,12 +160,6 @@ int os::get_native_stack(address* stack, int frames, int toSkip) {
return num_of_frames;
}
bool os::unsetenv(const char* name) {
assert(name != NULL, "Null pointer");
return (::unsetenv(name) == 0);
}
int os::get_last_error() {
return errno;
}

View File

@ -258,11 +258,6 @@ static BOOL unmapViewOfFile(LPCVOID lpBaseAddress) {
return result;
}
bool os::unsetenv(const char* name) {
assert(name != NULL, "Null pointer");
return (SetEnvironmentVariable(name, NULL) == TRUE);
}
char** os::get_environ() { return _environ; }
// No setuid programs under Windows.

View File

@ -186,8 +186,6 @@ class os: AllStatic {
static jint init_2(void); // Called after command line parsing
// and VM ergonomics processing
// unset environment variable
static bool unsetenv(const char* name);
// Get environ pointer, platform independently
static char** get_environ();