From 3e8039620d53bdca15a5c9df27906430fc37a9a3 Mon Sep 17 00:00:00 2001 From: zhyuri <4649294+zhyuri@users.noreply.github.com> Date: Thu, 19 Dec 2024 20:05:00 -0500 Subject: [PATCH] Revert "add deprecation message" This reverts commit f849f14b5ff22aed280a654cb61a500821035f9c. --- cmd/grpcurl/grpcurl.go | 5 ----- cmd/grpcurl/unix.go | 15 --------------- 2 files changed, 20 deletions(-) delete mode 100644 cmd/grpcurl/unix.go diff --git a/cmd/grpcurl/grpcurl.go b/cmd/grpcurl/grpcurl.go index a3fcba1..aaead29 100644 --- a/cmd/grpcurl/grpcurl.go +++ b/cmd/grpcurl/grpcurl.go @@ -45,8 +45,6 @@ var version = noVersion var ( exit = os.Exit - isUnixSocket func() bool // nil when run on non-unix platform - flags = flag.NewFlagSet(os.Args[0], flag.ExitOnError) help = flags.Bool("help", false, prettify(` @@ -363,9 +361,6 @@ func main() { if *format != "json" && *format != "text" { fail(nil, "The -format option must be 'json' or 'text'.") } - if isUnixSocket != nil && isUnixSocket() { - fail(nil, "The -unix option is deprecated, please use unix://{path} as the address instead.") - } if *emitDefaults && *format != "json" { warn("The -emit-defaults is only used when using json format.") } diff --git a/cmd/grpcurl/unix.go b/cmd/grpcurl/unix.go deleted file mode 100644 index cae4bed..0000000 --- a/cmd/grpcurl/unix.go +++ /dev/null @@ -1,15 +0,0 @@ -//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows -// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows - -package main - -var ( - unix = flags.Bool("unix", false, prettify(` - Indicates that the server address is the path to a Unix domain socket.`)) -) - -func init() { - isUnixSocket = func() bool { - return *unix - } -}