From a0e24f446baf27c593f3e04ecfed7da5b4b1d582 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 27 Jul 2020 20:40:57 +0200 Subject: [PATCH] Remove unused getMemSize() function --- src/hydra-queue-runner/hydra-queue-runner.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 0da14bcd..0c7e26f5 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -30,13 +30,6 @@ template<> void toJSON(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) { auto value = getEnv(key);