From c5441b2e16b5da6d17e9ada040fd727b0789fc07 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 4 Jan 2024 10:27:56 -0500 Subject: [PATCH] chore: remove commented code --- metadata/file_version.go | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/metadata/file_version.go b/metadata/file_version.go index d2572e4..abcdb4e 100644 --- a/metadata/file_version.go +++ b/metadata/file_version.go @@ -111,24 +111,4 @@ func (fv *FileVersion) CID() *encoding.CID { return fv.PlaintextCID } return &fv.EncryptedCID.OriginalCID -} /* -func (fv *FileVersion) UnmarshalJSON(data []byte) error { - type tempFileVersion FileVersion - - tvf := &tempFileVersion{} - - // Initialize your properties, for example, to their zero values - tvf.Ts = 0 - tvf.EncryptedCID = &encoding.EncryptedCID{} - tvf.PlaintextCID = &encoding.CID{} - tvf.Thumbnail = &FileVersionThumbnail{} - tvf.Hashes = []*encoding.Multihash{} - tvf.Ext = map[string]interface{}{} - - // Define a temporary struct with the same structure as FileVersion - - var result map[string]interface{} - // Unmarshal data into the temporary struct - if err := json.Unmarshal(data, &result); err != nil { - return err - } +}