Remove dead code from let.mes.

* module/mes/let.mes (simple-let, named-let, let): Remove dead code.
This commit is contained in:
Jan Nieuwenhuizen 2016-10-18 19:11:14 +02:00
parent 4ff96673c7
commit d0addb3e99
1 changed files with 0 additions and 14 deletions

View File

@ -18,20 +18,6 @@
;;; You should have received a copy of the GNU General Public License
;;; along with Mes. If not, see <http://www.gnu.org/licenses/>.
(define-macro (simple-let bindings . rest)
`(,`(lambda ,(map car bindings) ,@rest)
,@(map cadr bindings)))
(define-macro (named-let label bindings . rest)
`(simple-let ((,label *unspecified*))
(set! ,label (lambda ,(map car bindings) ,@rest))
(,label ,@(map cadr bindings))))
(define-macro (let bindings-or-label . rest)
`(`,(if ,(symbol? bindings-or-label)
(list 'lambda '() (cons* 'named-let ,bindings-or-label ,(car rest) ,(cdr rest)))
(list 'lambda '() (cons* 'simple-let ,bindings-or-label ,rest)))))
(define-macro (xsimple-let bindings rest)
`(,`(lambda ,(map car bindings) ,@rest)
,@(map cadr bindings)))