8000 Remove unused code from ein-ac.el · tkf/emacs-ipython-notebook@5845dc6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5845dc6

Browse files
committed
Remove unused code from ein-ac.el
1 parent 372c7f6 commit 5845dc6

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lisp/ein-ac.el

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939
(default-value 'ac-sources))
4040
"Extra `ac-sources' used in notebook.")
4141

42+
(make-obsolete-variable 'ein:ac-max-cache nil "0.1.2")
4243
(defcustom ein:ac-max-cache 1000
43-
"Maximum number of cache to store."
44+
"[This value is not used anymore!]
45+
Maximum number of cache to store."
4446
:type 'integer
4547
:group 'ein)
4648

@@ -79,8 +81,6 @@
7981

8082
;;; AC Source
8183

82-
(defvar ein:ac-cache-matches nil)
83-
8484
(defvar ein:ac-direct-matches nil
8585
"Variable to store completion candidates for `auto-completion'.")
8686
;; FIXME: Maybe this should be buffer-local?
@@ -140,11 +140,6 @@ compatibility with `ein:completer-finish-completing-default'."
140140
(ac-start))))
141141
;; Why `ac-start'? See: `jedi:complete'.
142142

143-
(defun ein:ac-clear-cache ()
144-
(setq ein:ac-cache-matches
145-
(setcdr (nthcdr (1- ein:ac-max-cache)
146-
(delete-dups ein:ac-cache-matches)) nil)))
147-
148143

149144
;;; Async document request hack
150145

0 commit comments

Comments
 (0)
0