Eliminate redundant call.
authorChris Hanson <org/chris-hanson/cph>
Sat, 26 Mar 2016 08:25:30 +0000 (01:25 -0700)
committerChris Hanson <org/chris-hanson/cph>
Sat, 26 Mar 2016 08:25:30 +0000 (01:25 -0700)
src/runtime/wrkdir.scm

index ed82ad836161403444255f2d3065eeba4fa97162..cdb623b1cd8228f64ff70c0e9b68b198eb77146b 100644 (file)
@@ -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