[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim 99c5f45 2/2: * pyim-dhashcache.el (pyim-dhashcache
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pyim 99c5f45 2/2: * pyim-dhashcache.el (pyim-dhashcache-init-variables): Remove old useless code. |
Date: |
Sun, 25 Apr 2021 08:57:14 -0400 (EDT) |
branch: externals/pyim
commit 99c5f4527ffb90d3c6331566d71dc30cbef89c27
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* pyim-dhashcache.el (pyim-dhashcache-init-variables): Remove old useless
code.
---
pyim-dhashcache.el | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/pyim-dhashcache.el b/pyim-dhashcache.el
index 5d0a4b6..76bf367 100644
--- a/pyim-dhashcache.el
+++ b/pyim-dhashcache.el
@@ -375,24 +375,12 @@ code 对应的中文词条了。
(defun pyim-dhashcache-init-variables ()
"初始化 dcache 缓存相关变量."
- (pyim-dcache-set-variable
- 'pyim-dhashcache-iword2count nil
- ;; 添加 dregcache 后端之后, 原来的 dcache 更名为 dhashcache,
- ;; 升级迁移
- (pyim-dcache-get-variable 'pyim-dcache-iword2count))
+ (pyim-dcache-set-variable 'pyim-dhashcache-iword2count)
(pyim-dcache-set-variable 'pyim-dhashcache-code2word)
(pyim-dcache-set-variable 'pyim-dhashcache-word2code)
(pyim-dcache-set-variable 'pyim-dhashcache-shortcode2word)
- (pyim-dcache-set-variable
- 'pyim-dhashcache-icode2word nil
- ;; 添加 dregcache 后端之后, 原来的 dcache 更名为 dhashcache,
- ;; 升级迁移
- (pyim-dcache-get-variable 'pyim-dcache-icode2word))
- (pyim-dcache-set-variable
- 'pyim-dhashcache-ishortcode2word nil
- ;; 添加 dregcache 后端之后, 原来的 dcache 更名为 dhashcache,
- ;; 升级迁移
- (pyim-dcache-get-variable 'pyim-dcache-ishortcode2word)))
+ (pyim-dcache-set-variable 'pyim-dhashcache-icode2word)
+ (pyim-dcache-set-variable 'pyim-dhashcache-ishortcode2word))
(defun pyim-dhashcache-save-personal-dcache-to-file ()
;; 用户选择过的词