changeset 53594:c88533ce800a

8218060: JDK-8217786 breaks build due to remaining unused function Summary: Remove unused function. Reviewed-by: eosterlund
author tschatzl
date Wed, 30 Jan 2019 16:19:25 +0100
parents acb1571b1df8
children 230b84fa7e53
files src/hotspot/os/linux/os_linux.cpp
diffstat 1 files changed, 0 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/os/linux/os_linux.cpp	Wed Jan 30 14:24:14 2019 +0100
+++ b/src/hotspot/os/linux/os_linux.cpp	Wed Jan 30 16:19:25 2019 +0100
@@ -1856,34 +1856,6 @@
   return true;
 }
 
-// keywords_to_match - NULL terminated array of keywords
-static bool print_matching_lines_from_sysinfo_file(outputStream* st, const char* keywords_to_match[]) {
-  const char* filename = "/proc/sysinfo";
-  char* line = NULL;
-  size_t length = 0;
-  FILE* fp = fopen(filename, "r");
-  if (fp == NULL) {
-    return false;
-  }
-
-  st->print_cr("Virtualization information:");
-  while (getline(&line, &length, fp) != -1) {
-    int i = 0;
-    while (keywords_to_match[i] != NULL) {
-      if (strncmp(line, keywords_to_match[i], strlen(keywords_to_match[i])) == 0) {
-        st->print("%s", line);
-        break;
-      }
-      i++;
-    }
-  }
-
-  free(line);
-  fclose(fp);
-
-  return true;
-}
-
 void os::print_dll_info(outputStream *st) {
   st->print_cr("Dynamic libraries:");