From 52f399e49a6c313f9b4f67c3a1d2d087e53abc90 Mon Sep 17 00:00:00 2001 From: Zygimantas Benetis Date: Wed, 27 Mar 2024 10:19:30 +0200 Subject: [PATCH] boost: remove empty primitive --- go/vt/vtgate/engine/empty_primitive.go | 51 -------------------------- 1 file changed, 51 deletions(-) delete mode 100644 go/vt/vtgate/engine/empty_primitive.go diff --git a/go/vt/vtgate/engine/empty_primitive.go b/go/vt/vtgate/engine/empty_primitive.go deleted file mode 100644 index 58385369365..00000000000 --- a/go/vt/vtgate/engine/empty_primitive.go +++ /dev/null @@ -1,51 +0,0 @@ -package engine - -import ( - "vitess.io/vitess/go/sqltypes" - "vitess.io/vitess/go/vt/proto/query" -) - -// EmptyPrimitive represents a no-operation primitive, -// fulfilling the Primitive interface without performing any actions. -type EmptyPrimitive struct { - noInputs - noTxNeeded -} - -func (ep *EmptyPrimitive) Execute(vcursor VCursor, bindVars map[string]*query.BindVariable, wantfields bool) (*sqltypes.Result, error) { - return &sqltypes.Result{}, nil -} - -func (ep *EmptyPrimitive) StreamExecute(vcursor VCursor, bindVars map[string]*query.BindVariable, wantfields bool, callback func(*sqltypes.Result) error) error { - return callback(&sqltypes.Result{}) -} - -func (ep *EmptyPrimitive) GetFields(vcursor VCursor, bindVars map[string]*query.BindVariable) (*sqltypes.Result, error) { - return &sqltypes.Result{}, nil -} - -func (ep *EmptyPrimitive) RouteType() string { - return "Empty" -} - -func (ep *EmptyPrimitive) GetKeyspaceName() string { - return "" -} - -func (ep *EmptyPrimitive) GetTableName() string { - return "" -} - -func (ep *EmptyPrimitive) Inputs() []Primitive { - return nil -} - -func (ep *EmptyPrimitive) NeedsTransaction() bool { - return false -} - -func (ep *EmptyPrimitive) description() PrimitiveDescription { - return PrimitiveDescription{ - OperatorType: "Empty", - } -}