From 430991c39bedafb231e0017277e69ad95cb1d56e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 15 Aug 2025 00:37:07 +0900 Subject: hst/fs: remove type method Having a method that returns the canonical string representation of its type seemed like a much better idea for an implementation that never made it to staging. Remove it here and clean up marshal type assertions. Signed-off-by: Ophestra --- hst/fsbind.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hst/fsbind.go') diff --git a/hst/fsbind.go b/hst/fsbind.go index 18d9cf74..beceecb2 100644 --- a/hst/fsbind.go +++ b/hst/fsbind.go @@ -26,8 +26,7 @@ type FSBind struct { Optional bool `json:"optional,omitempty"` } -func (b *FSBind) Type() string { return FilesystemBind } -func (b *FSBind) Valid() bool { return b != nil && b.Src != nil } +func (b *FSBind) Valid() bool { return b != nil && b.Src != nil } func (b *FSBind) Target() *container.Absolute { if !b.Valid() { -- cgit v1.3.1