src/hotspot/os/linux/os_linux.cpp
changeset 50930 6a5f1195e15f
parent 50667 cc58f1fa0438
child 50956 429b0997c16d
--- a/src/hotspot/os/linux/os_linux.cpp	Tue Jul 03 13:41:18 2018 -0400
+++ b/src/hotspot/os/linux/os_linux.cpp	Tue Jul 03 15:08:01 2018 -0400
@@ -1419,23 +1419,6 @@
   ::abort();
 }
 
-
-// This method is a copy of JDK's sysGetLastErrorString
-// from src/solaris/hpi/src/system_md.c
-
-size_t os::lasterror(char *buf, size_t len) {
-  if (errno == 0)  return 0;
-
-  const char *s = os::strerror(errno);
-  size_t n = ::strlen(s);
-  if (n >= len) {
-    n = len - 1;
-  }
-  ::strncpy(buf, s, n);
-  buf[n] = '\0';
-  return n;
-}
-
 // thread_id is kernel thread id (similar to Solaris LWP id)
 intx os::current_thread_id() { return os::Linux::gettid(); }
 int os::current_process_id() {