 
 (defun straight--load-build-cache ()
   "Load data from the build cache into memory.
-This sets the variables `straight--build-cache',
-`straight--eagerly-checked-packages', and
-`straight--live-modified-repos'. If the build cache is malformed,
-don't signal an error, but set these variables to empty
-values (all packages will be rebuilt, with no caching).
-
-If live modification checking is enabled, then this also gets the
-list of modified packages by inspecting `straight--modified-dir'."
+This sets the variables `straight--build-cache' and
+`straight--eagerly-checked-packages'. If the build cache is
+malformed, don't signal an error, but set these variables to
+empty values (all packages will be rebuilt, with no caching)."
   ;; Start by clearing the build cache. If the one on disk is
   ;; malformed (or outdated), these values will be used.
   (setq straight--build-cache (make-hash-table :test #'equal))
   (setq straight--autoloads-cache (make-hash-table :test #'equal))
   (setq straight--eagerly-checked-packages nil)
-  (setq straight--live-modified-repos nil)
   (setq straight--build-cache-text nil)
-  (when (memq straight-check-for-modifications '(live live-with-find))
-    (setq straight--live-modified-repos
-          (condition-case _ (straight--directory-files
-                             (straight--modified-dir))
-            (file-missing))))
   (ignore-errors
     (with-temp-buffer
       ;; Using `insert-file-contents-literally' avoids

           (last-mtime (nth 0 build-info))
           (last-recipe (nth 2 build-info)))
      (or (null build-info)
          (member local-repo straight--live-modified-repos)
          ;; Rebuild if relevant parts of the recipe have changed.
          (cl-dolist (keyword straight--build-keywords nil)
            (unless (equal (plist-get recipe keyword)

      (print straight-use-symlinks (current-buffer)))
    (unless (and straight--build-cache-text
                 (string= (buffer-string) straight--build-cache-text))
      (write-region nil nil (straight--build-cache-file) nil 0))
    (when (memq straight-check-for-modifications '(live live-with-find))
      ;; We've imported data from `straight--modified-dir' into the
      ;; build cache when loading it. Now that we've written the build
      ;; cache back to disk, there's no more need for that data (and
      ;; indeed, it would produce spurious package rebuilds on
      ;; subsequent inits).
      (delete-directory (straight--modified-dir) 'recursive))))

;;;;; Live modification checking

