8273877: os::unsetenv unused
Reviewed-by: mdoerr, stuefe
This commit is contained in:
parent
35f6f1d69f
commit
27d747ad4f
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user