Skip to content

Commit

Permalink
refactor: remove unused api functions
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Sep 1, 2024
1 parent da6a911 commit 2fadf40
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions app/src/main/java/com/osfans/trime/core/Rime.kt
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,6 @@ class Rime : RimeApi, RimeLifecycleOwner {
return hasMenu() && inputContext?.menu?.pageNumber != 0
}

@JvmStatic
fun hasRight(): Boolean {
return hasMenu() && inputContext?.menu?.isLastPage == false
}

@JvmStatic
fun showAsciiPunch(): Boolean {
return mStatus?.isAsciiPunch == true || mStatus?.isAsciiMode == true
Expand Down Expand Up @@ -291,18 +286,6 @@ class Rime : RimeApi, RimeLifecycleOwner {
}
}

fun selectCandidate(index: Int): Boolean {
return selectRimeCandidateOnCurrentPage(index).also {
updateContext()
}
}

fun deleteCandidate(index: Int): Boolean {
return deleteRimeCandidateOnCurrentPage(index).also {
updateContext()
}
}

@JvmStatic
fun setOption(
option: String,
Expand Down

0 comments on commit 2fadf40

Please sign in to comment.