From 93522effba2f200257141189de5925a23fca93b8 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 22 Apr 2025 14:47:25 +0200 Subject: Remove compose from the public API --- cpp/nissy.cpp | 9 --------- cpp/nissy.h | 1 - 2 files changed, 10 deletions(-) (limited to 'cpp') 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) #include extern "C" { - long long nissy_compose(const char *, const char *, char *); long long nissy_inverse(const char *, char *); long long nissy_applymoves(const char *, const char *, char *); long long nissy_applytrans(const char *, const char *, char *); @@ -87,14 +86,6 @@ namespace nissy { m_str = result; } - void cube::compose(const cube& other) - { - char result[size::CUBE]; - nissy_compose( - m_str.c_str(), other.to_string().c_str(), result); - m_str = result; - } - std::string cube::to_string() const { return m_str; } std::variant 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 { error move(const std::string&); error transform(const std::string&); void invert(); - void compose(const cube&); std::string to_string() const; static std::variant from_string( -- cgit v1.3