Commit 7f107ac6 authored by Whyrusleeping's avatar Whyrusleeping Committed by GitHub

Merge pull request #4833 from ipfs/misc/remove-dead-code

misc: Remove some dead code
parents 8af3f40f d87b75cc
......@@ -82,7 +82,7 @@ func DagArchive(ctx context.Context, nd ipld.Node, name string, dag ipld.DAGServ
// the case for 1. archive, and 2. not archived and not compressed, in which tar is used anyway as a transport format
// construct the tar writer
w, err := tar.NewWriter(ctx, dag, archive, compression, maybeGzw)
w, err := tar.NewWriter(ctx, dag, maybeGzw)
if checkErrAndClosePipe(err) {
return nil, err
}
......
......@@ -30,7 +30,7 @@ type Writer struct {
}
// NewWriter wraps given io.Writer.
func NewWriter(ctx context.Context, dag ipld.DAGService, archive bool, compression int, w io.Writer) (*Writer, error) {
func NewWriter(ctx context.Context, dag ipld.DAGService, w io.Writer) (*Writer, error) {
return &Writer{
Dag: dag,
TarW: tar.NewWriter(w),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment