From: Chris Hanson Date: Sat, 26 Mar 2016 08:25:30 +0000 (-0700) Subject: Eliminate redundant call. X-Git-Tag: mit-scheme-pucked-9.2.12~261^2~65 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=8b955c12dbb5bdbb0d841836a59fd23b8b2670c1;p=mit-scheme.git Eliminate redundant call. --- diff --git a/src/runtime/wrkdir.scm b/src/runtime/wrkdir.scm index ed82ad836..cdb623b1c 100644 --- a/src/runtime/wrkdir.scm +++ b/src/runtime/wrkdir.scm @@ -39,14 +39,6 @@ USA. (reset!) (add-event-receiver! event:after-restore reset!)) -(define (reset!) - (let ((pathname - (pathname-simplify - (pathname-as-directory - ((ucode-primitive working-directory-pathname)))))) - (working-directory-pathname pathname) - (param:default-pathname-defaults pathname))) - (define working-directory-pathname) (define (wd-setter set-param pathname) @@ -54,6 +46,12 @@ USA. (param:default-pathname-defaults pathname) pathname) +(define (reset!) + (working-directory-pathname + (pathname-simplify + (pathname-as-directory + ((ucode-primitive working-directory-pathname)))))) + (define (set-working-directory-pathname! name) (let ((pathname (new-pathname name))) ;; XXX Checking FILE-DIRECTORY? is a stop-gap kludge until we fix