From b1802ca28c06d55b80e117df0cf2f5098a29117c Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Tue, 4 Aug 2026 12:03:56 +0200 Subject: [PATCH] Remove dead code: unused BlockFn type and deprecated BindTarget constants --- fs/edsl.go | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/fs/edsl.go b/fs/edsl.go index 60d5bbc..225211c 100644 --- a/fs/edsl.go +++ b/fs/edsl.go @@ -44,9 +44,6 @@ type HandlerCtx struct { Data any } -// BlockFn is the signature for blocking/streaming reads. -type BlockFn func(ctx context.Context, base string) ([]byte, string, error) - // ── Type aliases from fsedsl ───────────────────────────────────── // FsNodeDecl describes one node in the 9P namespace. @@ -90,24 +87,13 @@ const ( ) // BindTarget declares what data an Each block binds to handlers. -// These are advisory — the actual binding is done by Binding.Applier. +// This is advisory — the actual binding is done by Binding.Applier. type BindTarget = fsedsl.BindTarget const ( BindData = fsedsl.BindData ) -// Legacy bind targets for backward compatibility. -// These are no longer meaningful since we use Applier, but keep them -// to avoid breaking existing code that references them. -const ( - BindSession BindTarget = 100 + iota // deprecated: use Applier - BindAgent // deprecated: use Applier - BindAgentLog // deprecated: use Applier - BindRemove // deprecated: use Applier - BindRename // deprecated: use Applier -) - // ── EDSL constructors (wrappers) ───────────────────────────────── // DirNode declares a static directory node.