Remove unused getMemSize() function

This commit is contained in:
Eelco Dolstra 2020-07-27 20:40:57 +02:00
parent 5b4df3ad5a
commit a0e24f446b
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -30,13 +30,6 @@ template<> void toJSON<double>(std::ostream & str, const double & n) { str << n;
} }
static uint64_t getMemSize()
{
auto pages = sysconf(_SC_PHYS_PAGES);
return pages >= 0 ? pages * sysconf(_SC_PAGESIZE) : 4ULL << 30;
}
std::string getEnvOrDie(const std::string & key) std::string getEnvOrDie(const std::string & key)
{ {
auto value = getEnv(key); auto value = getEnv(key);