8238602: remove obsolete functions from libinstrument/FileSystemSupport_md.c

Reviewed-by: clanger, sspitsyn
This commit is contained in:
Matthias Baesken 2020-02-06 16:53:33 +01:00
parent c103a1bb69
commit 1e0167ef92
3 changed files with 3 additions and 32 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 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
@ -25,17 +25,6 @@
#include "FileSystemSupport_md.h"
/**
* Return the local filesystem's path-separator character.
*/
char pathSeparator();
/**
* Compare two filenames represent and tell if they represent the same file
* or not.
*/
int filenameStrcmp(const char* s1, const char* s2);
/**
* Post-process the given URI path string if necessary. This is used on
* win32, e.g., to transform "/c:/foo" into "c:/foo". The path string

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
@ -35,15 +35,6 @@
#define slash '/'
char pathSeparator() {
return ':';
}
/* Filenames are case senstitive */
int filenameStrcmp(const char* s1, const char* s2) {
return strcmp(s1, s2);
}
char* basePath(const char* path) {
char* last = strrchr(path, slash);
if (last == NULL) {

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
@ -45,15 +45,6 @@ static int isLetter(char c) {
return ((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z'));
}
char pathSeparator() {
return ';';
}
/* filename are case insensitive on windows */
int filenameStrcmp(const char* s1, const char* s2) {
return strcasecmp(s1, s2);
}
char* basePath(const char* path) {
char* pos = strchr(path, slash);
char* last = NULL;