From dd66a0cfb22ee91cbefc4eb2e13bcd842aa5432b Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 16 May 2019 14:38:57 -0700 Subject: [PATCH] chore: remove URL field We now just use the AbsPath field for both URLs and file paths. --- importer/helpers/dagbuilder.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/importer/helpers/dagbuilder.go b/importer/helpers/dagbuilder.go index a624217f8..e3cf7b44f 100644 --- a/importer/helpers/dagbuilder.go +++ b/importer/helpers/dagbuilder.go @@ -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 @@ -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 }