From 89df89b5fbc7e62383a1bea34750e9689482b448 Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Tue, 2 Feb 2021 21:13:51 +0100 Subject: [NO TESTS NEEDED] fixup: remove debug code Signed-off-by: Matej Vasek --- pkg/bindings/network/types_connect_options.go | 3 --- pkg/bindings/network/types_create_options.go | 3 --- pkg/bindings/network/types_disconnect_options.go | 3 --- pkg/bindings/network/types_exists_options.go | 3 --- pkg/bindings/network/types_inspect_options.go | 3 --- pkg/bindings/network/types_list_options.go | 3 --- pkg/bindings/network/types_remove_options.go | 3 --- 7 files changed, 21 deletions(-) (limited to 'pkg/bindings/network') diff --git a/pkg/bindings/network/types_connect_options.go b/pkg/bindings/network/types_connect_options.go index 72ad988f1..4440bbed4 100644 --- a/pkg/bindings/network/types_connect_options.go +++ b/pkg/bindings/network/types_connect_options.go @@ -1,7 +1,6 @@ package network import ( - "fmt" "net/url" "reflect" "strings" @@ -69,8 +68,6 @@ func (o *ConnectOptions) ToParams() (url.Values, error) { } params.Set(fieldName, s) - default: - panic(fmt.Sprintf("don't known how to handle %s", f.Type().String())) } } diff --git a/pkg/bindings/network/types_create_options.go b/pkg/bindings/network/types_create_options.go index 23a7dc6bf..5fbdce93a 100644 --- a/pkg/bindings/network/types_create_options.go +++ b/pkg/bindings/network/types_create_options.go @@ -1,7 +1,6 @@ package network import ( - "fmt" "net" "net/url" "reflect" @@ -70,8 +69,6 @@ func (o *CreateOptions) ToParams() (url.Values, error) { } params.Set(fieldName, s) - default: - panic(fmt.Sprintf("don't known how to handle %s", f.Type().String())) } } diff --git a/pkg/bindings/network/types_disconnect_options.go b/pkg/bindings/network/types_disconnect_options.go index 56ba995c5..947f2f114 100644 --- a/pkg/bindings/network/types_disconnect_options.go +++ b/pkg/bindings/network/types_disconnect_options.go @@ -1,7 +1,6 @@ package network import ( - "fmt" "net/url" "reflect" "strings" @@ -69,8 +68,6 @@ func (o *DisconnectOptions) ToParams() (url.Values, error) { } params.Set(fieldName, s) - default: - panic(fmt.Sprintf("don't known how to handle %s", f.Type().String())) } } diff --git a/pkg/bindings/network/types_exists_options.go b/pkg/bindings/network/types_exists_options.go index 3cc2246bf..2fad34789 100644 --- a/pkg/bindings/network/types_exists_options.go +++ b/pkg/bindings/network/types_exists_options.go @@ -1,7 +1,6 @@ package network import ( - "fmt" "net/url" "reflect" "strings" @@ -69,8 +68,6 @@ func (o *ExistsOptions) ToParams() (url.Values, error) { } params.Set(fieldName, s) - default: - panic(fmt.Sprintf("don't known how to handle %s", f.Type().String())) } } diff --git a/pkg/bindings/network/types_inspect_options.go b/pkg/bindings/network/types_inspect_options.go index 0c28b8ec4..144ccbfae 100644 --- a/pkg/bindings/network/types_inspect_options.go +++ b/pkg/bindings/network/types_inspect_options.go @@ -1,7 +1,6 @@ package network import ( - "fmt" "net/url" "reflect" "strings" @@ -69,8 +68,6 @@ func (o *InspectOptions) ToParams() (url.Values, error) { } params.Set(fieldName, s) - default: - panic(fmt.Sprintf("don't known how to handle %s", f.Type().String())) } } diff --git a/pkg/bindings/network/types_list_options.go b/pkg/bindings/network/types_list_options.go index fa779b65c..60632ce33 100644 --- a/pkg/bindings/network/types_list_options.go +++ b/pkg/bindings/network/types_list_options.go @@ -1,7 +1,6 @@ package network import ( - "fmt" "net/url" "reflect" "strings" @@ -69,8 +68,6 @@ func (o *ListOptions) ToParams() (url.Values, error) { } params.Set(fieldName, s) - default: - panic(fmt.Sprintf("don't known how to handle %s", f.Type().String())) } } diff --git a/pkg/bindings/network/types_remove_options.go b/pkg/bindings/network/types_remove_options.go index c036d525f..4ad4a2301 100644 --- a/pkg/bindings/network/types_remove_options.go +++ b/pkg/bindings/network/types_remove_options.go @@ -1,7 +1,6 @@ package network import ( - "fmt" "net/url" "reflect" "strings" @@ -69,8 +68,6 @@ func (o *RemoveOptions) ToParams() (url.Values, error) { } params.Set(fieldName, s) - default: - panic(fmt.Sprintf("don't known how to handle %s", f.Type().String())) } } -- cgit v1.2.3-54-g00ecf