Remove unnecessary sourceMapping population in convertAlphabeticToKana

This commit is contained in:
toasted-nutbread 2020-03-14 17:10:53 -04:00
parent 248a18dd72
commit a50b76fd21

View File

@ -293,12 +293,6 @@ const jp = (() => {
function convertAlphabeticToKana(text, sourceMapping) {
let part = '';
let result = '';
const ii = text.length;
if (sourceMapping.length === ii) {
sourceMapping.length = ii;
sourceMapping.fill(1);
}
for (const char of text) {
// Note: 0x61 is the character code for 'a'