Remove unused NPC registry and identity aliases

This commit is contained in:
2026-07-25 13:06:40 +00:00
parent d752c51aec
commit aeaaf44ae0
3 changed files with 10 additions and 11 deletions

View File

@@ -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 {

View File

@@ -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 }