mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
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 <bees@furryterror.org>
This commit is contained in:
parent
17d8759011
commit
f263c8751e
@ -21,17 +21,6 @@ using namespace crucible;
|
|||||||
using namespace std;
|
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()
|
BeesFdCache::BeesFdCache()
|
||||||
{
|
{
|
||||||
m_root_cache.func([&](shared_ptr<BeesContext> ctx, uint64_t root) -> Fd {
|
m_root_cache.func([&](shared_ptr<BeesContext> ctx, uint64_t root) -> Fd {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user