Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Remove unnecessary key manager (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
JBD committed Jan 30, 2018
1 parent 76a1a1a commit 1414293
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 143 deletions.
3 changes: 1 addition & 2 deletions tag/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package tag

// Key represents a tag key.
type Key struct {
id uint16
name string
}

Expand All @@ -27,7 +26,7 @@ func NewKey(name string) (Key, error) {
if !checkKeyName(name) {
return Key{}, errInvalidKeyName
}
return km.newStringKey(name)
return Key{name: name}, nil
}

// Name returns the name of the key.
Expand Down
69 changes: 0 additions & 69 deletions tag/keys_manager.go

This file was deleted.

72 changes: 0 additions & 72 deletions tag/keys_manager_test.go

This file was deleted.

0 comments on commit 1414293

Please sign in to comment.