From a50c61f4d31cf3cc30222554bd171dbf66603668 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 12 Nov 2019 12:51:22 +0000 Subject: removed superceded func and old TODOs --- reader/reader.go | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'reader/reader.go') diff --git a/reader/reader.go b/reader/reader.go index 1d0dbf5..7153120 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -120,7 +120,7 @@ func cols(n int) []string { //ReadXLSToMap returns the file's data as a map, // keyed on sheet name. All values are returned as strings. // Paths to a datamap and the spreadsheet file required. -func ReadXLSToMap(dm string, ssheet string) FileData { +func ReadXLS(dm string, ssheet string) FileData { // open the files excelData, err := xlsx.OpenFile(ssheet) @@ -152,25 +152,3 @@ func ReadXLSToMap(dm string, ssheet string) FileData { } return output } - -//ReadXLSX reads an XLSX file -func ReadXLSX(fn string) []ExtractedCell { - var out []ExtractedCell - f, err := xlsx.OpenFile(fn) - if err != nil { - fmt.Printf("Cannot open %s", fn) - } - for _, sheet := range f.Sheets { - for rowLidx, row := range sheet.Rows { - for colLidx, cell := range row.Cells { - ex := ExtractedCell{ - Cell: cell, - ColL: colstream[colLidx], - RowLidx: rowLidx + 1, - Value: cell.Value} - out = append(out, ex) - } - } - } - return out -} -- cgit v1.2.3