Skip to content

Commit

Permalink
chore: clean up unused
Browse files Browse the repository at this point in the history
Signed-off-by: Universal Studio <10200399+TMUniversal@users.noreply.github.com>
  • Loading branch information
TMUniversal committed Sep 25, 2023
1 parent b491bac commit 9661828
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions internal/serial.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,3 @@ func GenerateSerial(length uint8) (string, error) {

return buf.String()[:length], nil
}

// DecodeSerial decodes a serial number
func DecodeSerial(serial string) ([]byte, error) {
decoder := base32.NewDecoder(base32.StdEncoding, bytes.NewBufferString(serial))
var decoded []byte
_, err := decoder.Read(decoded)
if err != nil {
return nil, errors.Join(errors.New("error decoding serial"), err)
}

return decoded, nil
}
2 changes: 0 additions & 2 deletions internal/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ var (

// Warning is used to style warnings for the user.
Warning = lipgloss.NewStyle().Foreground(lipgloss.Color("11")).Bold(true).Render

BoldStyle = lipgloss.NewStyle().Bold(true)
)

0 comments on commit 9661828

Please sign in to comment.