Skip to content

Commit

Permalink
Remove runtime/sam/expr.Cutter.Quiet (#5282)
Browse files Browse the repository at this point in the history
It's been a no-op since #4627.
  • Loading branch information
nwt authored Sep 16, 2024
1 parent 62930df commit 4a1ebf5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
5 changes: 2 additions & 3 deletions compiler/ast/dag/op.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ type (
Kind string `json:"kind" unpack:""`
}
Cut struct {
Kind string `json:"kind" unpack:""`
Args []Assignment `json:"args"`
Quiet bool `json:"quiet"`
Kind string `json:"kind" unpack:""`
Args []Assignment `json:"args"`
}
Drop struct {
Kind string `json:"kind" unpack:""`
Expand Down
3 changes: 0 additions & 3 deletions compiler/kernel/op.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ func (b *Builder) compileLeaf(o dag.Op, parent zbuf.Puller) (zbuf.Puller, error)
}
lhs, rhs := splitAssignments(assignments)
cutter := expr.NewCutter(b.rctx.Zctx, lhs, rhs)
if v.Quiet {
cutter.Quiet()
}
return op.NewApplier(b.rctx, parent, cutter, b.resetters), nil
case *dag.Drop:
if len(v.Args) == 0 {
Expand Down
5 changes: 0 additions & 5 deletions runtime/sam/expr/cutter.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ type Cutter struct {
droppers map[string]*Dropper
dropperCache []*Dropper
dirty bool
quiet bool
}

// NewCutter returns a Cutter for fieldnames. If complement is true,
Expand All @@ -42,10 +41,6 @@ func NewCutter(zctx *zed.Context, fieldRefs []*Lval, fieldExprs []Evaluator) *Cu
}
}

func (c *Cutter) Quiet() {
c.quiet = true
}

func (c *Cutter) FoundCut() bool {
return c.dirty
}
Expand Down

0 comments on commit 4a1ebf5

Please sign in to comment.