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

Method remove

plugins/debug.cpp:325–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325bool Filter::remove(const DebugCategory& cat) noexcept
326{
327 if (!enabled_)
328 return false;
329 if (!std::regex_search(cat.category(), category_))
330 return false;
331 if (!std::regex_search(cat.category(), plugin_))
332 return false;
333 TRACE(filter) << "remove " << cat.plugin() << ':' << cat.category() << " matches '"
334 << pluginText() << "' '" << categoryText() << std::endl;
335 --matches_;
336 return true;
337}
338
339/**
340 * Storage for enabled and disabled filters. It uses ordered map because common

Callers 5

run-tests.pyFile · 0.45
connectToMethod · 0.45
disableFilterFunction · 0.45
unsetFilterFunction · 0.45

Calls 2

categoryMethod · 0.80
pluginMethod · 0.80

Tested by

no test coverage detected