8244855: Remove unused "getParent" function from Windows jni_util_md.c

Reviewed-by: lancea, naoto
This commit is contained in:
Brent Christian 2020-05-12 14:19:21 -07:00
parent 06d6234213
commit cdf8cc5706

View file

@ -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.
*
* This code is free software; you can redistribute it and/or modify it
@ -31,17 +31,6 @@
#include "jni.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() {
return (void*)GetModuleHandle(NULL);
}