From c1b5f46f98a8a6ac7fc04f64633f66d39a8aaf33 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 26 Aug 2024 09:51:28 +0300 Subject: [PATCH] [#107] protogen: Remove unused parameter Signed-off-by: Evgenii Stratonikov --- util/protogen/main.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/util/protogen/main.go b/util/protogen/main.go index bfce1bf..8fdd666 100644 --- a/util/protogen/main.go +++ b/util/protogen/main.go @@ -2,8 +2,6 @@ package main import ( "flag" - "fmt" - "os" "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/protogen/internalgengo" "google.golang.org/protobuf/compiler/protogen" @@ -12,18 +10,10 @@ import ( func main() { var flags flag.FlagSet genFuzz := flags.Bool("fuzz", false, "generate fuzz tests") - yamlConfigPath := flags.String("config", "", "path to the configuration") protogen.Options{ ParamFunc: flags.Set, }.Run(func(gen *protogen.Plugin) error { - if *yamlConfigPath != "" { - s, e := os.Getwd() - fmt.Fprintln(os.Stderr, s, e) - data, err := os.ReadFile(*yamlConfigPath) - fmt.Fprintln(os.Stderr, string(data), err) - } - for _, f := range gen.Files { if f.Generate { internalgengo.GenerateFile(gen, f)