From 3f7b825f7cec5af643e70ff1b1ea5d6235c4aff1 Mon Sep 17 00:00:00 2001 From: Andres Taylor Date: Tue, 11 Jun 2024 17:56:46 +0200 Subject: [PATCH] remove unused code Signed-off-by: Andres Taylor --- go/vt/vtgate/planbuilder/operators/subquery.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/go/vt/vtgate/planbuilder/operators/subquery.go b/go/vt/vtgate/planbuilder/operators/subquery.go index 6f6f357c9b0..0e9cdb92d84 100644 --- a/go/vt/vtgate/planbuilder/operators/subquery.go +++ b/go/vt/vtgate/planbuilder/operators/subquery.go @@ -312,17 +312,3 @@ func (sq *SubQuery) rewriteColNameToArgument(expr sqlparser.Expr) sqlparser.Expr return sqlparser.Rewrite(expr, pre, nil).(sqlparser.Expr) } - -func (sq *SubQuery) Compact(*plancontext.PlanningContext) (Operator, *ApplyResult) { - other, ok := sq.Outer.(*SubQuery) - if !ok { - return sq, NoRewrite - } - if other.ArgName == sq.ArgName { - // we can remove this subquery because it's a duplicate - sq.Outer = other.Outer - return sq, Rewrote("removed duplicate subquery") - } - - return sq, NoRewrite -}