From 7dceb5e53346b00da41f46252d646e527ceaa4d3 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 22 Jul 2022 15:57:39 +0800 Subject: [PATCH] KeyHandler // -nextPhrasePosition. --- Source/Modules/ControllerModules/KeyHandler_Core.swift | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Source/Modules/ControllerModules/KeyHandler_Core.swift b/Source/Modules/ControllerModules/KeyHandler_Core.swift index c1cc127c..aa85b107 100644 --- a/Source/Modules/ControllerModules/KeyHandler_Core.swift +++ b/Source/Modules/ControllerModules/KeyHandler_Core.swift @@ -400,15 +400,6 @@ class KeyHandler { compositor.dropReading(direction: .front) } - var nextPhrasePosition: Int { - var nextPosition = 0 - for theAnchor in walkedAnchors { - if nextPosition > actualCandidateCursor { break } - nextPosition += theAnchor.spanLength - } - return min(nextPosition, compositorLength) - } - /// 生成標點符號索引鍵。 /// - Parameter input: 輸入的按鍵訊號。 /// - Returns: 生成的標點符號索引鍵。