Remove dead code: unused BlockFn type and deprecated BindTarget constants
This commit is contained in:
parent
882fc598d4
commit
b1802ca28c
16
fs/edsl.go
16
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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue