From d4fb10bd1c77e3ad32beb5d09a9ae3292721edda Mon Sep 17 00:00:00 2001 From: Christian Ege Date: Mon, 15 Apr 2024 12:51:42 +0200 Subject: [PATCH] fix: remove unreachable code --- cmd/ovp8xx/cmd/ports.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/cmd/ovp8xx/cmd/ports.go b/cmd/ovp8xx/cmd/ports.go index 24312f7..937a8d5 100644 --- a/cmd/ovp8xx/cmd/ports.go +++ b/cmd/ovp8xx/cmd/ports.go @@ -39,27 +39,6 @@ func listPortsCommand(cmd *cobra.Command, args []string) error { return nil } -func portsGetFilterSchemaCommand(cmd *cobra.Command, args []string) error { - - host, err := rootCmd.PersistentFlags().GetString("ip") - if err != nil { - return err - } - - o3r := ovp8xx.NewClient( - ovp8xx.WithHost(host), - ) - - diag := o3r.GetDiagnosticClient() - result, err := diag.GetFilterSchema() - if err != nil { - return err - } else { - fmt.Printf("%s\n", result) - } - return nil -} - var portsCmd = &cobra.Command{ Use: "ports", Short: "Interact with ports, also known as heads, connected to the OVP8xx",