Remove unused files
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use system_deps;
|
use system_deps;
|
||||||
|
|
||||||
fn main() {
|
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 deps = system_deps::Config::new().probe().unwrap();
|
||||||
|
|
||||||
let mut build = cxx_build::bridge("src/cxx/mod.rs");
|
let mut build = cxx_build::bridge("src/cxx/mod.rs");
|
||||||
|
|||||||
@@ -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());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
|
|
||||||
#include <sword/swkey.h>
|
|
||||||
|
|
||||||
#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);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user