Skip to content

Commit

Permalink
Remove mapcan to remove runtime dependence on cl.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyatt committed Jul 5, 2012
1 parent a31f0a8 commit 89b9afe
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions websocket.el
Original file line number Diff line number Diff line change
Expand Up @@ -459,13 +459,12 @@ of populating the list of server extensions to WEBSOCKET."
(when (setq pos (match-end 1))
(setq extensions (append extensions (split-string
(match-string 1 output) ", ?")))))
(let ((extra-extensions
(mapcan (lambda (ext) (when (not
(member
(first (split-string ext "; ?"))
(websocket-extensions websocket)))
(list (first (split-string ext "; ?")))))
extensions)))
(let ((extra-extensions))
(dolist (ext extensions)
(when (not (member
(first (split-string ext "; ?"))
(websocket-extensions websocket)))
(add-to-list 'extra-extensions (first (split-string ext "; ?")))))
(when extra-extensions
(error "Non-requested extensions returned by server: %s"
extra-extensions)))
Expand Down

0 comments on commit 89b9afe

Please sign in to comment.