Skip to content

Commit

Permalink
vex: remove unused newFingerprint() function
Browse files Browse the repository at this point in the history
The parseFingerprint() function is the only one we use.

Signed-off-by: crozzy <[email protected]>
  • Loading branch information
crozzy committed Nov 8, 2024
1 parent ada0982 commit 946d38f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions rhel/vex/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,6 @@ type fingerprint struct {
version string
}

// NewFingerprint creates a new fingerprint object.
func newFingerprint(changesEtag string, deletionsEtag string, requestTime time.Time) *fingerprint {
return &fingerprint{
changesEtag: changesEtag,
deletionsEtag: deletionsEtag,
requestTime: requestTime,
version: updaterVersion,
}
}

// ParseFingerprint takes a generic driver.Fingerprint and creates a vex.fingerprint.
// The string format saved in the DB is returned by the fingerprint.String() method.
func parseFingerprint(in driver.Fingerprint) (*fingerprint, error) {
Expand Down

0 comments on commit 946d38f

Please sign in to comment.