diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 14:47:25 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 14:47:25 +0200 |
| commit | 93522effba2f200257141189de5925a23fca93b8 (patch) | |
| tree | 96d94b56017f1448832b5dc9e24bfcb31183f13c /cpp/nissy.cpp | |
| parent | 1fb55fe25b3dd5ef61dbc38290fbba2e233dc6b6 (diff) | |
| download | nissy-core-93522effba2f200257141189de5925a23fca93b8.tar.gz nissy-core-93522effba2f200257141189de5925a23fca93b8.zip | |
Remove compose from the public API
Diffstat (limited to '')
| -rw-r--r-- | cpp/nissy.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cpp/nissy.cpp b/cpp/nissy.cpp index 3535553..a077c50 100644 --- a/cpp/nissy.cpp +++ b/cpp/nissy.cpp | |||
| @@ -9,7 +9,6 @@ TODO: add more documentation (here and in README.md) | |||
| 9 | #include <fstream> | 9 | #include <fstream> |
| 10 | 10 | ||
| 11 | extern "C" { | 11 | extern "C" { |
| 12 | long long nissy_compose(const char *, const char *, char *); | ||
| 13 | long long nissy_inverse(const char *, char *); | 12 | long long nissy_inverse(const char *, char *); |
| 14 | long long nissy_applymoves(const char *, const char *, char *); | 13 | long long nissy_applymoves(const char *, const char *, char *); |
| 15 | long long nissy_applytrans(const char *, const char *, char *); | 14 | long long nissy_applytrans(const char *, const char *, char *); |
| @@ -87,14 +86,6 @@ namespace nissy { | |||
| 87 | m_str = result; | 86 | m_str = result; |
| 88 | } | 87 | } |
| 89 | 88 | ||
| 90 | void cube::compose(const cube& other) | ||
| 91 | { | ||
| 92 | char result[size::CUBE]; | ||
| 93 | nissy_compose( | ||
| 94 | m_str.c_str(), other.to_string().c_str(), result); | ||
| 95 | m_str = result; | ||
| 96 | } | ||
| 97 | |||
| 98 | std::string cube::to_string() const { return m_str; } | 89 | std::string cube::to_string() const { return m_str; } |
| 99 | 90 | ||
| 100 | std::variant<cube, error> | 91 | std::variant<cube, error> |
