Remove unused NPC registry and identity aliases
This commit is contained in:
@@ -138,9 +138,6 @@ func ValidateRegistry(npcs []dnd.NPC) []Issue {
|
||||
// ValidateList validates the identity members of list.
|
||||
func ValidateList(list dnd.NPCList) []Issue { return ValidateRegistry(list.NPCs) }
|
||||
|
||||
// Validate is a convenience alias for ValidateList.
|
||||
func Validate(list dnd.NPCList) []Issue { return ValidateList(list) }
|
||||
|
||||
// Error makes an issue useful in simple callers while preserving its
|
||||
// structured fields for aggregate diagnostics.
|
||||
func (i Issue) Error() string {
|
||||
|
||||
@@ -203,9 +203,6 @@ func Resolve(references contracts.ReferenceSet) (*Registry, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
// New is an alias for Resolve for callers constructing a prepared registry.
|
||||
func New(references contracts.ReferenceSet) (*Registry, error) { return Resolve(references) }
|
||||
|
||||
// Bound reports whether an NPC reference was supplied and validated.
|
||||
func (r *Registry) Bound() bool { return r != nil && r.bound }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user