From e3fc79a785493276fccb9fe7531dcfa371d09030 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Wed, 17 May 2023 10:34:04 -0400 Subject: [PATCH] Removing dead code. --- cmd/obp/cmd/validate.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cmd/obp/cmd/validate.go b/cmd/obp/cmd/validate.go index 97f3b3d..b896935 100644 --- a/cmd/obp/cmd/validate.go +++ b/cmd/obp/cmd/validate.go @@ -5,9 +5,7 @@ package cmd import ( "fmt" - "io" "log" - "net/url" "os" "github.com/santhosh-tekuri/jsonschema/v5" @@ -16,19 +14,6 @@ import ( "gopkg.in/yaml.v3" ) -func LoadURL(s string) (io.ReadCloser, error) { - u, err := url.Parse(s) - if err != nil { - return nil, err - } - loader, ok := jsonschema.Loaders[u.Scheme] - if !ok { - return nil, jsonschema.LoaderNotFoundError(s) - - } - return loader(s) -} - // rootCmd represents the base command when called without any subcommands var validateCmd = &cobra.Command{ Use: "validate",