From 62ddc9b7f990b43dbca48ef16c84e417731ecf4b Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 25 Mar 2023 23:29:05 +0100 Subject: [PATCH] vfscache: remove unused code (fixes issue reported by the unused linter) --- vfs/vfscache/item.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vfs/vfscache/item.go b/vfs/vfscache/item.go index c7943d4af..566e29e32 100644 --- a/vfs/vfscache/item.go +++ b/vfs/vfscache/item.go @@ -172,13 +172,6 @@ func (item *Item) inUse() bool { return item.opens != 0 || item.info.Dirty } -// getATime returns the ATime of the item -func (item *Item) getATime() time.Time { - item.mu.Lock() - defer item.mu.Unlock() - return item.info.ATime -} - // getDiskSize returns the size on disk (approximately) of the item // // We return the sizes of the chunks we have fetched, however there is