From c504aa505c3155fb67353fb85cd0cca62f465a89 Mon Sep 17 00:00:00 2001 From: greatroar <@> Date: Mon, 2 Mar 2020 09:34:56 +0100 Subject: [PATCH] Remove unused fs.Rename --- internal/fs/file.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/fs/file.go b/internal/fs/file.go index 86c519aff..f1ff451ed 100644 --- a/internal/fs/file.go +++ b/internal/fs/file.go @@ -32,14 +32,6 @@ func RemoveAll(path string) error { return os.RemoveAll(fixpath(path)) } -// Rename renames (moves) oldpath to newpath. -// If newpath already exists, Rename replaces it. -// OS-specific restrictions may apply when oldpath and newpath are in different directories. -// If there is an error, it will be of type *LinkError. -func Rename(oldpath, newpath string) error { - return os.Rename(fixpath(oldpath), fixpath(newpath)) -} - // Symlink creates newname as a symbolic link to oldname. // If there is an error, it will be of type *LinkError. func Symlink(oldname, newname string) error {