mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01: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:
		@@ -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 {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user