diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-14 14:03:22 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-14 14:03:22 +0200 |
| commit | a54aca8c923609cc4e786b19a06abf7cacb6645a (patch) | |
| tree | 158bd493eb5e0560f63e4cff89a4eb509930c8a2 | |
| parent | 3ab1012ea8c55f82812b5998fd6b4fdf53dea70e (diff) | |
| download | nissy-core-a54aca8c923609cc4e786b19a06abf7cacb6645a.tar.gz nissy-core-a54aca8c923609cc4e786b19a06abf7cacb6645a.zip | |
Removed unnecessary check
| -rw-r--r-- | cpp/nissy.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cpp/nissy.cpp b/cpp/nissy.cpp index ad0eb7c..e3193e1 100644 --- a/cpp/nissy.cpp +++ b/cpp/nissy.cpp | |||
| @@ -196,12 +196,6 @@ namespace nissy { | |||
| 196 | if (err < 0) | 196 | if (err < 0) |
| 197 | return result; | 197 | return result; |
| 198 | 198 | ||
| 199 | // TODO: is this special case actually needed? Remove if not | ||
| 200 | if (err == 0) { | ||
| 201 | result.solutions = {}; | ||
| 202 | return result; | ||
| 203 | } | ||
| 204 | |||
| 205 | std::string_view strsols(csols.data()); | 199 | std::string_view strsols(csols.data()); |
| 206 | for (auto r : strsols | std::views::split('\n')) | 200 | for (auto r : strsols | std::views::split('\n')) |
| 207 | if (r.begin() != r.end()) | 201 | if (r.begin() != r.end()) |
