Removed getCharType function; it was never used after all.
This commit is contained in:
parent
a5c8a35647
commit
94f1de9fcd
|
@ -332,33 +332,6 @@ public class Translator {
|
|||
bars.add(BAR_SHORT_BOTTOM);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the type of character that a tengwar char is.
|
||||
* @param tengwarChar a tengwar char.
|
||||
* @return enum type describing the character's purpose.
|
||||
*/
|
||||
private static CHAR_TYPE getCharType(char tengwarChar){
|
||||
if (compoundChars.containsValue(tengwarChar)) {
|
||||
return CHAR_TYPE.COMPOUND;
|
||||
} else if (consonantChars.containsValue(tengwarChar)){
|
||||
return CHAR_TYPE.CONSONANT;
|
||||
} else if (numberChars.containsValue(tengwarChar)){
|
||||
return CHAR_TYPE.NUMBER;
|
||||
} else if (punctuationChars.containsValue(tengwarChar)){
|
||||
return CHAR_TYPE.PUNCTUATION;
|
||||
} else if (alternateChars.containsValue(tengwarChar)){
|
||||
return CHAR_TYPE.ALTERNATE;
|
||||
}else if (sCurls.contains(tengwarChar)){
|
||||
return CHAR_TYPE.S_CURL;
|
||||
} else if (carriers.contains(tengwarChar)){
|
||||
return CHAR_TYPE.CARRIER;
|
||||
} else if (bars.contains(tengwarChar)){
|
||||
return CHAR_TYPE.BAR;
|
||||
} else {
|
||||
return CHAR_TYPE.VOWEL;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gives the properly sized vowel for a particular tengwar character.
|
||||
* Uses indices from the charSizes map to find the proper character.
|
||||
|
|
Loading…
Reference in New Issue