Skip to content

Commit

Permalink
Remove decodeRoot
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Lowman <[email protected]>
  • Loading branch information
ethan-lowman-dd committed Aug 24, 2022
1 parent 984ead2 commit fb8ad85
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -672,19 +672,6 @@ func (c *Client) downloadMetaFromTimestamp(name string, m data.TimestampFileMeta
return b, nil
}

// decodeRoot decodes and verifies root metadata.
//
//lint:ignore U1000 unused
func (c *Client) decodeRoot(b json.RawMessage) error {
root := &data.Root{}
if err := c.db.Unmarshal(b, root, "root", c.rootVer); err != nil {
return ErrDecodeFailed{"root.json", err}
}
c.rootVer = root.Version
c.consistentSnapshot = root.ConsistentSnapshot
return nil
}

// decodeSnapshot decodes and verifies snapshot metadata, and returns the new
// root and targets file meta.
func (c *Client) decodeSnapshot(b json.RawMessage) (data.SnapshotFiles, error) {
Expand Down

0 comments on commit fb8ad85

Please sign in to comment.