From df7c0642575a530c8e560a606fcbd1271be7d9aa Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 7 Apr 2022 10:59:03 +0200 Subject: [PATCH] FIX: Remove unused NewFromCSV constructor Signed-off-by: Evan Lezar --- internal/discover/csv.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/internal/discover/csv.go b/internal/discover/csv.go index a9c68218..8ce15655 100644 --- a/internal/discover/csv.go +++ b/internal/discover/csv.go @@ -32,17 +32,6 @@ type csvDiscoverer struct { var _ Discover = (*csvDiscoverer)(nil) -// NewFromCSV creates a discoverer for the CSV files at the specified root. A logger is also supplied. -func NewFromCSV(logger *logrus.Logger, csvRoot string, root string) (Discover, error) { - logger.Debugf("Loading CSV files from: %v", csvRoot) - - files, err := csv.GetFileList(csvRoot) - if err != nil { - return nil, fmt.Errorf("failed to get CSV file from %v: %v", csvRoot, err) - } - return NewFromCSVFiles(logger, files, root) -} - // NewFromCSVFiles creates a discoverer for the specified CSV files. A logger is also supplied. // The constructed discoverer is comprised of a list, with each element in the list being associated with a // single CSV files.