aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Oteiza2017-02-19 22:19:57 -0500
committerMark Oteiza2017-02-19 22:19:57 -0500
commite7b0dac11356f4f343f0441ce2078e994e1a7219 (patch)
treeda1ae8f0ad8d74c5978ac6c599ce275a21afb0a5
parent2f605c3f89d5d3657d364f45e1b6b6c23bf0de70 (diff)
downloademacs-e7b0dac11356f4f343f0441ce2078e994e1a7219.tar.gz
emacs-e7b0dac11356f4f343f0441ce2078e994e1a7219.zip
Remove member clone
* lisp/play/dunnet.el (dun-answer): Use member instead. (dun-members): Remove.
-rw-r--r--lisp/play/dunnet.el12
1 files changed, 1 insertions, 11 deletions
diff --git a/lisp/play/dunnet.el b/lisp/play/dunnet.el
index d8e0681b7a8..bffb38a01a2 100644
--- a/lisp/play/dunnet.el
+++ b/lisp/play/dunnet.el
@@ -2109,7 +2109,7 @@ for a moment, then straighten yourself up.
2109 (setq args (car args)) 2109 (setq args (car args))
2110 (if (not args) 2110 (if (not args)
2111 (dun-mprincl "You must give the answer on the same line.") 2111 (dun-mprincl "You must give the answer on the same line.")
2112 (if (dun-members args dun-correct-answer) 2112 (if (member args dun-correct-answer)
2113 (progn 2113 (progn
2114 (dun-mprincl "Correct.") 2114 (dun-mprincl "Correct.")
2115 (if (= dun-lastdir 0) 2115 (if (= dun-lastdir 0)
@@ -2330,16 +2330,6 @@ for a moment, then straighten yourself up.
2330 (append startlist 2330 (append startlist
2331 (list (substring dirstring 0 slash))))))))) 2331 (list (substring dirstring 0 slash)))))))))
2332 2332
2333
2334;;; Is a string a member of a string list?
2335
2336(defun dun-members (string string-list)
2337 (let (found)
2338 (setq found nil)
2339 (dolist (x string-list)
2340 (if (string= x string)
2341 (setq found t))) found))
2342
2343;;; Function to put objects in the treasure room. Also prints current 2333;;; Function to put objects in the treasure room. Also prints current
2344;;; score to let user know he has scored. 2334;;; score to let user know he has scored.
2345 2335