MCPcopy Create free account
hub / github.com/DFHack/dfhack / RemoveAlias

Method RemoveAlias

library/Core.cpp:2133–2142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2131}
2132
2133bool Core::RemoveAlias(const std::string &name)
2134{
2135 std::lock_guard<std::recursive_mutex> lock(alias_mutex);
2136 if (IsAlias(name))
2137 {
2138 aliases.erase(name);
2139 return true;
2140 }
2141 return false;
2142}
2143
2144bool Core::IsAlias(const std::string &name)
2145{

Callers 1

aliasMethod · 0.80

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected