Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
删除注释代码。
Browse files Browse the repository at this point in the history
  • Loading branch information
tangshimin committed Jan 18, 2023
1 parent ea7fe28 commit 530cd81
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/main/kotlin/state/WordState.kt
Original file line number Diff line number Diff line change
Expand Up @@ -237,28 +237,6 @@ class WordState(dataWordState: DataWordState) {

}

// /** 改变词库 */
// fun changeVocabulary(file: File,index: Int,state: AppState) {
// val newVocabulary = loadMutableVocabulary(file.absolutePath)
// if(newVocabulary.wordList.size>0){
//
// // 把困难词库的索引保存在 typingWord.
// if(vocabulary.name == "HardVocabulary"){
// hardVocabularyIndex = index
// }else{
// // 保存当前词库的索引到最近列表,
// state.saveToRecentList(vocabulary.name, vocabularyPath,index)
// }
//
// vocabulary = newVocabulary
// vocabularyName = file.nameWithoutExtension
// vocabularyPath = file.absolutePath
// chapter = (index / 20) + 1
// this.index = index
// state.vocabularyChanged = true
// saveTypingWordState()
// }
// }

/** 保存当前的词库 */
fun saveCurrentVocabulary() {
Expand Down

0 comments on commit 530cd81

Please sign in to comment.