| 601 | } |
| 602 | |
| 603 | void 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 |
| 623 | void cmCursesMainForm::FillCacheManagerFromUI() |
no test coverage detected