src/hotspot/os/linux/os_linux.cpp
changeset 50667 cc58f1fa0438
parent 50526 3a5aafb12ae6
child 50930 6a5f1195e15f
child 51020 1835f9fca157
--- a/src/hotspot/os/linux/os_linux.cpp	Fri Jun 15 13:57:32 2018 -0400
+++ b/src/hotspot/os/linux/os_linux.cpp	Tue Jun 19 09:34:41 2018 +0200
@@ -5378,16 +5378,6 @@
   return buf[0] == 'y' || buf[0] == 'Y';
 }
 
-int os::stat(const char *path, struct stat *sbuf) {
-  char pathbuf[MAX_PATH];
-  if (strlen(path) > MAX_PATH - 1) {
-    errno = ENAMETOOLONG;
-    return -1;
-  }
-  os::native_path(strcpy(pathbuf, path));
-  return ::stat(pathbuf, sbuf);
-}
-
 // Is a (classpath) directory empty?
 bool os::dir_is_empty(const char* path) {
   DIR *dir = NULL;