Removed getCharType function; it was never used after all.

This commit is contained in:
Andrew Lalis 2017-04-24 14:49:00 +02:00
parent a5c8a35647
commit 94f1de9fcd
1 changed files with 0 additions and 27 deletions

View File

@ -332,33 +332,6 @@ public class Translator {
bars.add(BAR_SHORT_BOTTOM); 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. * Gives the properly sized vowel for a particular tengwar character.
* Uses indices from the charSizes map to find the proper character. * Uses indices from the charSizes map to find the proper character.