diff options
author | Daniel Martí <mvdan@mvdan.cc> | 2018-03-23 22:02:03 +0000 |
---|---|---|
committer | Daniel Martí <mvdan@mvdan.cc> | 2018-04-02 15:51:31 +0000 |
commit | 2722650415c459dfb47c2e52661816cd844530bc (patch) | |
tree | 7863be398d5630845ef330ea2c7ffc5e95297487 /src/cmd/pack | |
parent | 0250ef910f9a979a2151bd8e02b2641b74cf2f27 (diff) | |
download | go-2722650415c459dfb47c2e52661816cd844530bc.tar.gz go-2722650415c459dfb47c2e52661816cd844530bc.zip |
cmd: remove some unused parameters
Change-Id: I9d2a4b8df324897e264d30801e95ddc0f0e75f3a
Reviewed-on: https://go-review.googlesource.com/102337
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ilya Tocar <ilya.tocar@intel.com>
Diffstat (limited to 'src/cmd/pack')
-rw-r--r-- | src/cmd/pack/pack.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/pack/pack.go b/src/cmd/pack/pack.go index 090e5bbb77..95ecad01a1 100644 --- a/src/cmd/pack/pack.go +++ b/src/cmd/pack/pack.go @@ -266,7 +266,7 @@ func (ar *Archive) scan(action func(*Entry)) { } // listEntry prints to standard output a line describing the entry. -func listEntry(ar *Archive, entry *Entry, verbose bool) { +func listEntry(entry *Entry, verbose bool) { if verbose { fmt.Fprintf(stdout, "%s\n", entry) } else { @@ -457,7 +457,7 @@ var stdout io.Writer = os.Stdout func (ar *Archive) printContents(entry *Entry) { if ar.match(entry) { if verbose { - listEntry(ar, entry, false) + listEntry(entry, false) } ar.output(entry, stdout) } else { @@ -474,7 +474,7 @@ func (ar *Archive) skipContents(entry *Entry) { // tableOfContents implements the 't' command. func (ar *Archive) tableOfContents(entry *Entry) { if ar.match(entry) { - listEntry(ar, entry, verbose) + listEntry(entry, verbose) } ar.skip(entry) } @@ -483,7 +483,7 @@ func (ar *Archive) tableOfContents(entry *Entry) { func (ar *Archive) extractContents(entry *Entry) { if ar.match(entry) { if verbose { - listEntry(ar, entry, false) + listEntry(entry, false) } fd, err := os.OpenFile(entry.name, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, entry.mode) if err != nil { |