From a64b85d256eb34d9b4a2593a91ecccdcc27095bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 12 Oct 2022 23:00:48 +0200 Subject: [PATCH] Remove completely unused methods from rwContainerStore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Exposing the internals of the lock is not necessary, and exposes too many implementation details. Should not change behavior. Signed-off-by: Miloslav Trmač --- containers.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/containers.go b/containers.go index 7cc003815..6793db6ab 100644 --- a/containers.go +++ b/containers.go @@ -94,12 +94,6 @@ type rwContainerStore interface { // last recorded writer. It should only be called with the lock held. Modified() (bool, error) - // TouchedSince() checks if the most recent writer modified the file (likely using Touch()) after the specified time. - TouchedSince(when time.Time) bool - - // IsReadWrite() checks if the lock file is read-write - IsReadWrite() bool - // Locked() checks if lock is locked for writing by a thread in this process Locked() bool // Load reloads the contents of the store from disk. It should be called @@ -701,14 +695,6 @@ func (r *containerStore) Modified() (bool, error) { return r.lockfile.Modified() } -func (r *containerStore) IsReadWrite() bool { - return r.lockfile.IsReadWrite() -} - -func (r *containerStore) TouchedSince(when time.Time) bool { - return r.lockfile.TouchedSince(when) -} - func (r *containerStore) Locked() bool { return r.lockfile.Locked() }