From 8b955c12dbb5bdbb0d841836a59fd23b8b2670c1 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 26 Mar 2016 01:25:30 -0700 Subject: [PATCH] Eliminate redundant call. --- src/runtime/wrkdir.scm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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 -- 2.25.1