Browse Source

code cleanup

master
Phuntsok Drak-pa 9 months ago
parent
commit
68fee99705
2 changed files with 0 additions and 34 deletions
  1. +0
    -1
      src/main.rs
  2. +0
    -33
      src/word/mod.rs

+ 0
- 1
src/main.rs View File

@@ -59,7 +59,6 @@ fn process_suffixes(word: &mut Word) {

match word
.get_gloss()
.clone()
.split('.')
.collect::<Vec<_>>()
.get(0)


+ 0
- 33
src/word/mod.rs View File

@@ -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)


Loading…
Cancel
Save