Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

chore: remove URL field #72

Merged
merged 1 commit into from
May 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions 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