From 7bbb4d14cb0db90d0daab94c247bcc1ad8d4c04b Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Thu, 17 Dec 2020 16:37:59 -0500 Subject: [PATCH] bees context: make it build with clang Remove unused function getenv_or_die. All of our environment variable parameters are optional or have default values. Signed-off-by: Zygo Blaxell --- lib/process.cc | 3 --- src/bees-context.cc | 11 ----------- 2 files changed, 14 deletions(-) diff --git a/lib/process.cc b/lib/process.cc index 9be1070..b5369e5 100644 --- a/lib/process.cc +++ b/lib/process.cc @@ -110,9 +110,6 @@ namespace crucible { } } - template<> - struct ResourceHandle; - pid_t gettid() { diff --git a/src/bees-context.cc b/src/bees-context.cc index 32f83ea..46d6595 100644 --- a/src/bees-context.cc +++ b/src/bees-context.cc @@ -11,17 +11,6 @@ using namespace crucible; using namespace std; -static inline -const char * -getenv_or_die(const char *name) -{ - const char *rv = getenv(name); - if (!rv) { - THROW_ERROR(runtime_error, "Environment variable " << name << " not defined"); - } - return rv; -} - BeesFdCache::BeesFdCache() { m_root_cache.func([&](shared_ptr ctx, uint64_t root) -> Fd {