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

Commit 1414293

Browse files
author
JBD
authored
Remove unnecessary key manager (#386)
1 parent 76a1a1a commit 1414293

File tree

3 files changed

+1
-143
lines changed

3 files changed

+1
-143
lines changed

tag/key.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package tag
1717

1818
// Key represents a tag key.
1919
type Key struct {
20-
id uint16
2120
name string
2221
}
2322

@@ -27,7 +26,7 @@ func NewKey(name string) (Key, error) {
2726
if !checkKeyName(name) {
2827
return Key{}, errInvalidKeyName
2928
}
30-
return km.newStringKey(name)
29+
return Key{name: name}, nil
3130
}
3231

3332
// Name returns the name of the key.

tag/keys_manager.go

-69
This file was deleted.

tag/keys_manager_test.go

-72
This file was deleted.

0 commit comments

Comments
 (0)