Skip to content
Permalink
Browse files
8244855: Remove unused "getParent" function from Windows jni_util_md.c
Reviewed-by: lancea, naoto
  • Loading branch information
Brent Christian committed May 12, 2020
1 parent 06d6234 commit cdf8cc57060a7497e1f598b9533b91365904dd49
Showing 1 changed file with 1 addition 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.
*
* 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);
}

0 comments on commit cdf8cc5

Please sign in to comment.