From 94f1de9fcdf036ce536675b334ad3fcdb00c536c Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Mon, 24 Apr 2017 14:49:00 +0200 Subject: [PATCH] Removed getCharType function; it was never used after all. --- src/net/agspace/translate/Translator.java | 27 ----------------------- 1 file changed, 27 deletions(-) diff --git a/src/net/agspace/translate/Translator.java b/src/net/agspace/translate/Translator.java index b33ef3d..58f463b 100644 --- a/src/net/agspace/translate/Translator.java +++ b/src/net/agspace/translate/Translator.java @@ -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.