From 0cfea57c668d94084fb70da9e3d19daa6c1a4b63 Mon Sep 17 00:00:00 2001 From: "Project Vitals (Connor McCarthy)" Date: Thu, 11 Jul 2024 00:41:27 -0400 Subject: [PATCH] =?UTF-8?q?[PV]=20Automated=20Suggestion=20=F0=9F=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Project Vitals has indentified the following code as unused and generated this corresponding PR to facilitate deletion. Please verify correctness and oversee the merge of this PR. Simplifying our collective codebase helps to minimize surface area for teams across Lyft! Join us in [#project-vitals-dev](https://lyft.enterprise.slack.com/archives/C06TB1M2V5W) with any questions, concerns, or curiosities! --- ast.go | 5 ----- init_option.go | 6 ------ lang/go/type_name_p3_presence_test.go | 1 + 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/ast.go b/ast.go index 7ec810c..5f8bdcb 100644 --- a/ast.go +++ b/ast.go @@ -41,11 +41,6 @@ func (g *graph) Lookup(name string) (Entity, bool) { return e, ok } -// ProcessDescriptors is deprecated; use ProcessCodeGeneratorRequest instead -func ProcessDescriptors(debug Debugger, req *plugin_go.CodeGeneratorRequest) AST { - return ProcessCodeGeneratorRequest(debug, req) -} - // ProcessCodeGeneratorRequest converts a CodeGeneratorRequest from protoc into a fully // connected AST entity graph. An error is returned if the input is malformed. func ProcessCodeGeneratorRequest(debug Debugger, req *plugin_go.CodeGeneratorRequest) AST { diff --git a/init_option.go b/init_option.go index 5c92c2f..257ebc3 100644 --- a/init_option.go +++ b/init_option.go @@ -49,9 +49,3 @@ func BiDirectional() InitOption { } // SupportedFeatures allows defining protoc features to enable / disable. -// See: https://github.com/protocolbuffers/protobuf/blob/v3.17.0/docs/implementing_proto3_presence.md#signaling-that-your-code-generator-supports-proto3-optional -func SupportedFeatures(feat *uint64) InitOption { - return func(g *Generator) { - g.persister.SetSupportedFeatures(feat) - } -} diff --git a/lang/go/type_name_p3_presence_test.go b/lang/go/type_name_p3_presence_test.go index cb0a2bc..6edb997 100644 --- a/lang/go/type_name_p3_presence_test.go +++ b/lang/go/type_name_p3_presence_test.go @@ -1,3 +1,4 @@ +//go:build proto3_presence // +build proto3_presence package pgsgo