Pārlūkot izejas kodu

Remove some more unused debug code

Ryan C. Thompson 7 gadi atpakaļ
vecāks
revīzija
8becb3b1c4
1 mainītis faili ar 0 papildinājumiem un 12 dzēšanām
  1. 0 12
      ido-completing-read+.el

+ 0 - 12
ido-completing-read+.el

@@ -1196,18 +1196,6 @@ blacklist was modified."
 
 (ido-cr+-maybe-update-blacklist)
 
-;; TODO: Remove this when it's no longer necessary for debugging
-(defun ido-chop@ido-cr+-prevent-infinite-loops (items elem)
-  "This advice checks for conditions that cause infinite loops in `ido-chop'.
-
-If any of these conditions is detected, it throws an error.
-Ideally this should not be necessary, but it helps with
-debugging."
-  (cl-assert (not (ido-cr+-cyclicp items)))
-  (cl-assert (member elem items)))
-(advice-add 'ido-chop :before
-            #'ido-chop@ido-cr+-prevent-infinite-loops)
-
 (provide 'ido-completing-read+)
 
 ;;; ido-completing-read+.el ends here