MCPcopy Create free account
hub / github.com/Kitware/CMake / RemoveEntry

Method RemoveEntry

Source/CursesDialog/cmCursesMainForm.cxx:603–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603void cmCursesMainForm::RemoveEntry(char const* value)
604{
605 if (!value) {
606 return;
607 }
608
609 auto removeIt =
610 std::find_if(this->Entries.begin(), this->Entries.end(),
611 [value](cmCursesCacheEntryComposite& entry) -> bool {
612 char const* val = entry.GetValue();
613 return val && !strcmp(value, val);
614 });
615
616 if (removeIt != this->Entries.end()) {
617 this->CMakeInstance->UnwatchUnusedCli(value);
618 this->Entries.erase(removeIt);
619 }
620}
621
622// copy from the list box to the cache manager
623void cmCursesMainForm::FillCacheManagerFromUI()

Callers 1

HandleInputMethod · 0.95

Calls 5

UnwatchUnusedCliMethod · 0.80
eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected