Skip to content
Permalink
Browse files

8238602: remove obsolete functions from libinstrument/FileSystemSuppo…

…rt_md.c

Reviewed-by: clanger, sspitsyn
  • Loading branch information
Matthias Baesken
Matthias Baesken committed Feb 6, 2020
1 parent c103a1b commit 1e0167ef92d390101fecdae316c11ad2caf455a4
@@ -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
@@ -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) {
@@ -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;

0 comments on commit 1e0167e

Please sign in to comment.