From 80ee48bfe0ed1d944cc2aa42fa981d3397aa7a31 Mon Sep 17 00:00:00 2001 From: Nemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com> Date: Wed, 4 Oct 2023 10:28:37 +0200 Subject: [PATCH] Remove `delete-file!` function (#34306) It was deprecated and left in a codebase for backwards compatibility. But it seems we've migrated all references to the new method `delete-file-if-exists`. The last time this was touched was three years ago. Should be safe to remove. --- bin/build/src/metabuild_common/core.clj | 1 - bin/build/src/metabuild_common/files.clj | 6 ------ 2 files changed, 7 deletions(-) diff --git a/bin/build/src/metabuild_common/core.clj b/bin/build/src/metabuild_common/core.clj index 234ee7b5cb5..f52ffae698a 100644 --- a/bin/build/src/metabuild_common/core.clj +++ b/bin/build/src/metabuild_common/core.clj @@ -40,7 +40,6 @@ assert-file-exists copy-file! create-directory-unless-exists! - delete-file! delete-file-if-exists! download-file! file-exists? diff --git a/bin/build/src/metabuild_common/files.clj b/bin/build/src/metabuild_common/files.clj index 205d005c6cc..31cd621671d 100644 --- a/bin/build/src/metabuild_common/files.clj +++ b/bin/build/src/metabuild_common/files.clj @@ -49,12 +49,6 @@ ([file & more] (dorun (map delete-file-if-exists! (cons file more))))) -(defn ^:deprecated delete-file! - "Alias for `delete-file-if-exists!`. Here for backwards compatibility. Prefer `delete-file-if-exists!` going - forward." - [& args] - (apply delete-file-if-exists! args)) - (defn copy-file! "Copy a `source` file (or directory, recursively) to `dest`." [^String source ^String dest] -- GitLab