IMKCandidates // Remove useless setCandidateData().

This commit is contained in:
ShikiSuen 2022-08-15 17:56:10 +08:00
parent 89b39deedd
commit a21551dc13
1 changed files with 3 additions and 6 deletions

View File

@ -83,12 +83,9 @@ public class ctlCandidateIMK: IMKCandidates, ctlCandidateProtocol {
}
public func reloadData() {
guard let delegate = delegate else { return }
let candidates = delegate.candidatesForController(self).map { theCandidate -> String in
let theConverted = IME.kanjiConversionIfRequired(theCandidate.1)
return (theCandidate.1 == theConverted) ? theCandidate.1 : "\(theConverted)(\(theCandidate.1))"
}
setCandidateData(candidates)
// guard let delegate = delegate else { return } //
//
// setCandidateData(candidates) //
keyCount = selectionKeys().count
selectedCandidateIndex = 0
update()