浏览代码

Remove some more unused debug code

Ryan C. Thompson 7 年之前
父节点
当前提交
8becb3b1c4
共有 1 个文件被更改,包括 0 次插入12 次删除
  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