From bcaf170162cc19b567be6a7006eb577c4babf897 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sun, 29 Jun 2025 22:04:56 -0500 Subject: [PATCH] Remove unused files --- build.rs | 2 +- src/cxx/key.cc | 35 ----------------------------------- src/cxx/key.h | 21 --------------------- 3 files changed, 1 insertion(+), 57 deletions(-) delete mode 100644 src/cxx/key.cc delete mode 100644 src/cxx/key.h diff --git a/build.rs b/build.rs index 46a1fc1..bec23dc 100644 --- a/build.rs +++ b/build.rs @@ -1,7 +1,7 @@ use system_deps; fn main() { - let sources = vec!["key", "mgr", "module", "versekey", "versification"]; + let sources = vec!["mgr", "module", "versekey", "versification"]; let deps = system_deps::Config::new().probe().unwrap(); let mut build = cxx_build::bridge("src/cxx/mod.rs"); diff --git a/src/cxx/key.cc b/src/cxx/key.cc deleted file mode 100644 index 9bd7128..0000000 --- a/src/cxx/key.cc +++ /dev/null @@ -1,35 +0,0 @@ -#include "key.h" - -namespace sword_rs { - uint8_t Key::get_error() const { - return this->getError(); - } - - rust::String Key::get_locale() const { - return rust::String(this->getLocale()); - } - - rust::String Key::get_range_text() const { - return rust::String(this->getRangeText()); - } - - rust::String Key::get_short_text() const { - return rust::String(this->getShortText()); - } - - rust::String Key::get_text() const { - return rust::String(this->getText()); - } - - uint8_t Key::pop_error() { - return this->popError(); - } - - void Key::set_locale(const rust::String &locale) { - this->setLocale(std::string(locale).c_str()); - } - - void Key::set_text(const rust::String &text) { - this->setText(std::string(text).c_str()); - } -} diff --git a/src/cxx/key.h b/src/cxx/key.h deleted file mode 100644 index 87d6a07..0000000 --- a/src/cxx/key.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include - -#include "rust/cxx.h" - -namespace sword_rs { - class Key : public sword::SWKey { - public: - uint8_t get_error() const; - rust::String get_locale() const; - rust::String get_range_text() const; - rust::String get_short_text() const; - rust::String get_text() const; - - uint8_t pop_error(); - - void set_locale(const rust::String &locale); - void set_text(const rust::String &text); - }; -}