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 | |
| 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 | ||||
| -rw-r--r-- | cpp/nissy.h | 1 |
2 files changed, 0 insertions, 10 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> |
diff --git a/cpp/nissy.h b/cpp/nissy.h index 2eb0f42..8fd0aff 100644 --- a/cpp/nissy.h +++ b/cpp/nissy.h | |||
| @@ -52,7 +52,6 @@ namespace nissy { | |||
| 52 | error move(const std::string&); | 52 | error move(const std::string&); |
| 53 | error transform(const std::string&); | 53 | error transform(const std::string&); |
| 54 | void invert(); | 54 | void invert(); |
| 55 | void compose(const cube&); | ||
| 56 | std::string to_string() const; | 55 | std::string to_string() const; |
| 57 | 56 | ||
| 58 | static std::variant<cube, error> from_string( | 57 | static std::variant<cube, error> from_string( |
