Skip to content

Commit

Permalink
Merge pull request ipfs/go-unixfs#72 from ipfs/fix/remove-urlstore-sp…
Browse files Browse the repository at this point in the history
…ecial-case

chore: remove URL field

This commit was moved from ipfs/go-unixfs@7cfc32e
  • Loading branch information
Stebalien authored May 17, 2019
2 parents de794c8 + 71da1b0 commit 4e3f0cb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions unixfs/ipld-merkledag/importer/helpers/dagbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ type DagBuilderParams struct {
// NoCopy signals to the chunker that it should track fileinfo for
// filestore adds
NoCopy bool

// URL if non-empty (and NoCopy is also true) indicates that the
// file will not be stored in the datastore but instead retrieved
// from this location via the urlstore.
URL string
}

// New generates a new DagBuilderHelper from the given params and a given
Expand All @@ -87,10 +82,6 @@ func (dbp *DagBuilderParams) New(spl chunker.Splitter) (*DagBuilderHelper, error
db.stat = fi.Stat()
}

if dbp.URL != "" && dbp.NoCopy {
db.fullPath = dbp.URL
}

if dbp.NoCopy && db.fullPath == "" { // Enforce NoCopy
return nil, ErrMissingFsRef
}
Expand Down

0 comments on commit 4e3f0cb

Please sign in to comment.