code cleanup

parent 16f0cf5f
Pipeline #230 passed with stage
in 1 minute and 15 seconds
......@@ -59,7 +59,6 @@ fn process_suffixes(word: &mut Word) {
match word
.get_gloss()
.clone()
.split('.')
.collect::<Vec<_>>()
.get(0)
......
......@@ -33,51 +33,18 @@ impl Word {
newword
}
#[allow(dead_code)]
pub fn get_word(&self) -> &String {
&self.word
}
#[allow(dead_code)]
pub fn set_word(&mut self, val: String) {
self.word = val;
}
#[allow(dead_code)]
pub fn get_morpheme(&self) -> &String {
&self.morpheme
}
#[allow(dead_code)]
pub fn set_morpheme(&mut self, val: String) {
self.morpheme = val;
}
#[allow(dead_code)]
pub fn get_gloss(&self) -> &String {
&self.gloss
}
#[allow(dead_code)]
pub fn set_gloss(&mut self, val: String) {
self.gloss = val;
}
#[allow(dead_code)]
pub fn get_affixes(&self) -> &String {
&self.affixes
}
#[allow(dead_code)]
pub fn set_affixes(&mut self, val: String) {
self.affixes = val;
}
#[allow(dead_code)]
pub fn ends_with_vowel(&self) -> bool {
self.ends_vowel
}
pub fn xml_event(&self) -> XmlEvent {
XmlEvent::start_element("word")
.attr("text", &self.word)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment