| 155 | } |
| 156 | |
| 157 | static size_t appendUniqueColor(std::vector<std::optional<Color>>& colors, const std::optional<Color>& color) { |
| 158 | for (size_t i = 0; i < colors.size(); i++) { |
| 159 | if (colors[i] == color) { |
| 160 | return i; |
| 161 | } |
| 162 | } |
no test coverage detected