changeset 82902:c27b2ab395b6

(avl-tree-del-balance1, avl-tree-del-balance2) (avl-tree-do-del-internal, avl-tree-do-delete) (avl-tree-enter-balance1, avl-tree-enter-balance2): Use plain `let'.
author Thien-Thi Nguyen <ttn@gnuvola.org>
date Mon, 27 Aug 2007 02:49:40 +0000
parents 18391b91e11f
children 7224e10a56f5
files lisp/emacs-lisp/avl-tree.el
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/avl-tree.el	Mon Aug 27 02:40:25 2007 +0000
+++ b/lisp/emacs-lisp/avl-tree.el	Mon Aug 27 02:49:40 2007 +0000
@@ -129,8 +129,8 @@
 
 (defun avl-tree-del-balance1 (node branch)
   ;; Rebalance a tree and return t if the height of the tree has shrunk.
-  (let* ((br (avl-tree-node-branch node branch))
-         p1 b1 p2 b2 result)
+  (let ((br (avl-tree-node-branch node branch))
+        p1 b1 p2 b2 result)
     (cond
      ((< (avl-tree-node-balance br) 0)
       (avl-tree-node-set-balance br 0)
@@ -178,8 +178,8 @@
         t)))))
 
 (defun avl-tree-del-balance2 (node branch)
-  (let* ((br (avl-tree-node-branch node branch))
-         p1 b1 p2 b2 result)
+  (let ((br (avl-tree-node-branch node branch))
+        p1 b1 p2 b2 result)
     (cond
      ((> (avl-tree-node-balance br) 0)
       (avl-tree-node-set-balance br 0)
@@ -227,7 +227,7 @@
         t)))))
 
 (defun avl-tree-do-del-internal (node branch q)
-  (let* ((br (avl-tree-node-branch node branch)))
+  (let ((br (avl-tree-node-branch node branch)))
     (if (avl-tree-node-right br)
         (if (avl-tree-do-del-internal br +1 q)
             (avl-tree-del-balance2 node branch))
@@ -238,7 +238,7 @@
 
 (defun avl-tree-do-delete (cmpfun root branch data)
   ;; Return t if the height of the tree has shrunk.
-  (let* ((br (avl-tree-node-branch root branch)))
+  (let ((br (avl-tree-node-branch root branch)))
     (cond
      ((null br)
       nil)
@@ -271,8 +271,8 @@
 
 (defun avl-tree-enter-balance1 (node branch)
   ;; Rebalance a tree and return t if the height of the tree has grown.
-  (let* ((br (avl-tree-node-branch node branch))
-         p1 p2 b2 result)
+  (let ((br (avl-tree-node-branch node branch))
+        p1 p2 b2 result)
     (cond
      ((< (avl-tree-node-balance br) 0)
       (avl-tree-node-set-balance br 0)
@@ -312,8 +312,8 @@
 
 (defun avl-tree-enter-balance2 (node branch)
   ;; Return t if the tree has grown.
-  (let* ((br (avl-tree-node-branch node branch))
-         p1 p2 b2)
+  (let ((br (avl-tree-node-branch node branch))
+        p1 p2 b2)
     (cond
      ((> (avl-tree-node-balance br) 0)
       (avl-tree-node-set-balance br 0)