From 97cb3766ad2055ddbf3cb5dd49c2725ae0b12148 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Thu, 17 Oct 2024 10:17:32 -0600 Subject: [PATCH] chore: remove unneeded parse method (#1515) Signed-off-by: Terry Howe --- cmd/oras/internal/option/platform.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/oras/internal/option/platform.go b/cmd/oras/internal/option/platform.go index 47dbf64b5..78c4fcbf5 100644 --- a/cmd/oras/internal/option/platform.go +++ b/cmd/oras/internal/option/platform.go @@ -84,8 +84,3 @@ func (opts *ArtifactPlatform) ApplyFlags(fs *pflag.FlagSet) { opts.FlagDescription = "set artifact platform" fs.StringVarP(&opts.platform, "artifact-platform", "", "", "[Experimental] "+opts.FlagDescription+" in the form of `os[/arch][/variant][:os_version]`") } - -// Parse parses the input platform flag to an oci platform type. -func (opts *ArtifactPlatform) Parse(cmd *cobra.Command) error { - return opts.Platform.Parse(cmd) -}