| 160 | } |
| 161 | |
| 162 | void CustomColorMapStorage::remove(const QString &name) |
| 163 | { |
| 164 | auto it = std::find_if(this->customColorMaps.begin(), |
| 165 | this->customColorMaps.end(), |
| 166 | [&name](const CustomColorMap &map) { return map.name == name; }); |
| 167 | if (it == this->customColorMaps.end()) |
| 168 | return; |
| 169 | |
| 170 | this->customColorMaps.erase(it); |
| 171 | storeToSettings(this->customColorMaps); |
| 172 | } |
| 173 | |
| 174 | } // namespace stats::color |
no test coverage detected