mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8244855: Remove unused "getParent" function from Windows jni_util_md.c
Reviewed-by: lancea, naoto
This commit is contained in:
parent
06d6234213
commit
cdf8cc5706
1 changed files with 1 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2004, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -31,17 +31,6 @@
|
||||||
#include "jni.h"
|
#include "jni.h"
|
||||||
#include "jni_util.h"
|
#include "jni_util.h"
|
||||||
|
|
||||||
static void getParent(const TCHAR *path, TCHAR *dest) {
|
|
||||||
char* lastSlash = max(strrchr(path, '\\'), strrchr(path, '/'));
|
|
||||||
if (lastSlash == NULL) {
|
|
||||||
*dest = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (path != dest)
|
|
||||||
strcpy(dest, path);
|
|
||||||
*lastSlash = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
void* getProcessHandle() {
|
void* getProcessHandle() {
|
||||||
return (void*)GetModuleHandle(NULL);
|
return (void*)GetModuleHandle(NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue