Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
remove dead code. remove lable menuLable in layout.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuan Xulei committed Jul 11, 2012
1 parent 67cf17b commit c6cd42f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
15 changes: 4 additions & 11 deletions apps/keyboard/js/imes/jskanji/jskanji.js
Expand Up @@ -83,7 +83,9 @@
];

// not used by now
var IMEAlphabetTable = {
// Uncomment this if half-width and full-width alphabet transformation
// is needed
/*var IMEAlphabetTable = {
'A': 'A', 'B': 'B', 'C': 'C', 'D': 'D', 'E': 'E', 'F': 'F',
'G': 'G', 'H': 'H', 'I': 'I', 'J': 'J', 'K': 'K', 'L': 'L',
'M': 'M', 'N': 'N', 'O': 'O', 'P': 'P', 'Q': 'Q', 'R': 'R',
Expand All @@ -102,7 +104,7 @@
'k': 'k', 'l': 'l', 'm': 'm', 'n': 'n', 'o': 'o', 'p': 'p',
'q': 'q', 'r': 'r', 's': 's', 't': 't', 'u': 'u', 'v': 'v',
'w': 'w', 'x': 'x', 'y': 'y', 'z': 'z'
};
};*/

var IMENumberTable = {
'1': '1', '2': '2', '3': '3', '4': '4', '5': '5', '6': '6', '7': '7',
Expand Down Expand Up @@ -834,9 +836,6 @@

if (!candidates.length) {
candidates.push([_firstKanji, _firstKana]);
} else {
//_firstKanji = terms[0].kanji;
//_firstKana = terms[0].kana;
}

_candidateList = candidates.slice();
Expand Down Expand Up @@ -921,10 +920,6 @@
candidates.push([term.kanji, term.kana]);
});
}
//else {
//_firstKanji = kanaStr;
//_firstKana = kanaStr;
//}

// only one kana in buf
if (_inputBuf.length === 1) {
Expand Down Expand Up @@ -966,8 +961,6 @@

if (!exists) {
candidates.push([sentenceKanji, sentenceKana]);
//_firstKanji = sentenceKanji;
//_firstKana = sentenceKana;
}
}

Expand Down
4 changes: 0 additions & 4 deletions apps/keyboard/js/layout.js
Expand Up @@ -985,8 +985,6 @@ const Keyboards = {
},
'jp-kanji-en': {
type: 'keyboard',
label: 'English',
menuLabel: 'English',
needsCandidatePanel: true,
disableAlternateLayout: true,
hidesSwitchKey: true,
Expand Down Expand Up @@ -1014,8 +1012,6 @@ const Keyboards = {
},
'jp-kanji-en-caps': {
type: 'keyboard',
label: 'English-CapsLock',
menuLabel: 'English-CapsLock',
needsCandidatePanel: true,
disableAlternateLayout: true,
hidesSwitchKey: true,
Expand Down

0 comments on commit c6cd42f

Please sign in to comment.