Skip to content

Commit

Permalink
faketreeeval: remove dead code
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
rafiss committed Jan 9, 2023
1 parent 45df230 commit 3701100
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion pkg/sql/faketreeeval/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ go_library(
"//pkg/repstream/streampb",
"//pkg/roachpb",
"//pkg/security/username",
"//pkg/sql/catalog/catpb",
"//pkg/sql/catalog/descpb",
"//pkg/sql/pgwire/pgcode",
"//pkg/sql/pgwire/pgerror",
Expand Down
8 changes: 0 additions & 8 deletions pkg/sql/faketreeeval/evalctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/cockroachdb/cockroach/pkg/repstream/streampb"
"github.com/cockroachdb/cockroach/pkg/roachpb"
"github.com/cockroachdb/cockroach/pkg/security/username"
"github.com/cockroachdb/cockroach/pkg/sql/catalog/catpb"
"github.com/cockroachdb/cockroach/pkg/sql/catalog/descpb"
"github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgcode"
"github.com/cockroachdb/cockroach/pkg/sql/pgwire/pgerror"
Expand Down Expand Up @@ -320,13 +319,6 @@ func (*DummyEvalPlanner) ExecutorConfig() interface{} {
return nil
}

// SynthesizePrivilegeDescriptor is part of the Planner interface.
func (*DummyEvalPlanner) SynthesizePrivilegeDescriptor(
ctx context.Context, privilegeObjectPath string, privilegeObjectType privilege.ObjectType,
) (privileges *catpb.PrivilegeDescriptor, retErr error) {
return nil, nil
}

var _ eval.Planner = &DummyEvalPlanner{}

var errEvalPlanner = pgerror.New(pgcode.ScalarOperationCannotRunWithoutFullSessionContext,
Expand Down

0 comments on commit 3701100

Please sign in to comment.