mirror of
https://github.com/containers/skopeo.git
synced 2025-07-12 14:08:37 +00:00
Remove unused code
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
92ad5eddcc
commit
3d4fb09f2c
@ -222,13 +222,6 @@ func (opts *inspectOptions) run(args []string, stdout io.Writer) (retErr error)
|
|||||||
return printTmpl(row, data)
|
return printTmpl(row, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func inspectNormalize(row string) string {
|
|
||||||
r := strings.NewReplacer(
|
|
||||||
".ImageID", ".Image",
|
|
||||||
)
|
|
||||||
return r.Replace(row)
|
|
||||||
}
|
|
||||||
|
|
||||||
func printTmpl(row string, data []interface{}) error {
|
func printTmpl(row string, data []interface{}) error {
|
||||||
t, err := template.New("skopeo inspect").Parse(row)
|
t, err := template.New("skopeo inspect").Parse(row)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -12,7 +12,6 @@ import (
|
|||||||
type loginOptions struct {
|
type loginOptions struct {
|
||||||
global *globalOptions
|
global *globalOptions
|
||||||
loginOpts auth.LoginOptions
|
loginOpts auth.LoginOptions
|
||||||
getLogin optionalBool
|
|
||||||
tlsVerify optionalBool
|
tlsVerify optionalBool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,10 +2,6 @@
|
|||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
func maybeReexec() error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func reexecIfNecessaryForImages(inputImageNames ...string) error {
|
func reexecIfNecessaryForImages(inputImageNames ...string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -114,10 +114,6 @@ func imageFlags(global *globalOptions, shared *sharedImageOptions, flagPrefix, c
|
|||||||
return fs, opts
|
return fs, opts
|
||||||
}
|
}
|
||||||
|
|
||||||
type retryOptions struct {
|
|
||||||
maxRetry int // The number of times to possibly retry
|
|
||||||
}
|
|
||||||
|
|
||||||
func retryFlags() (pflag.FlagSet, *retry.RetryOptions) {
|
func retryFlags() (pflag.FlagSet, *retry.RetryOptions) {
|
||||||
opts := retry.RetryOptions{}
|
opts := retry.RetryOptions{}
|
||||||
fs := pflag.FlagSet{}
|
fs := pflag.FlagSet{}
|
||||||
|
Loading…
Reference in New Issue
Block a user