From e4f20dea61ea59a75cb323e34c013db16aea1906 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Thu, 26 May 2022 13:41:24 +0200 Subject: [PATCH] repository: inline index.encode --- internal/repository/index.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/repository/index.go b/internal/repository/index.go index 09a09b2c3..139b5a173 100644 --- a/internal/repository/index.go +++ b/internal/repository/index.go @@ -409,13 +409,6 @@ func (idx *Index) Encode(w io.Writer) error { idx.m.Lock() defer idx.m.Unlock() - return idx.encode(w) -} - -// encode writes the JSON serialization of the index to the writer w. -func (idx *Index) encode(w io.Writer) error { - debug.Log("encoding index") - list, err := idx.generatePackList() if err != nil { return err