diff --git a/src/base/hostinfo.cc b/src/base/hostinfo.cc index 577ab01838..0e11f3fdff 100644 --- a/src/base/hostinfo.cc +++ b/src/base/hostinfo.cc @@ -28,8 +28,6 @@ #include "base/hostinfo.hh" -#include - #ifdef __APPLE__ #include #include @@ -41,22 +39,6 @@ #include "base/logging.hh" #include "base/str.hh" -std::string -__get_hostname() -{ - char host[256]; - if (gethostname(host, sizeof host) == -1) - warn("could not get host name!"); - return host; -} - -std::string & -hostname() -{ - static std::string hostname = __get_hostname(); - return hostname; -} - #ifndef __APPLE__ uint64_t procInfo(const char *filename, const char *target) diff --git a/src/base/hostinfo.hh b/src/base/hostinfo.hh index 3efb6f4d02..d8a8910ed8 100644 --- a/src/base/hostinfo.hh +++ b/src/base/hostinfo.hh @@ -30,14 +30,6 @@ #define __HOSTINFO_HH__ #include -#include - -/** - * Get the host name for the current machine. - * - * @return The machine's host name. - */ -std::string &hostname(); /** * Determine the simulator process' total virtual memory usage.