summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorahmad <ahmed.khet@gmail.com>2016-10-31 13:15:31 +0200
committerahmad <ahmed.khet@gmail.com>2016-10-31 13:15:31 +0200
commit1bbc54d4ec8d11ecb41bea99aa1b7220c4e6f040 (patch)
tree62578acd5281d296ab3529b83b1fe1a140396078 /sheet.go
parent37c4575835a40126ec7ce227c18aa8dbf9cc4bf3 (diff)
sheet re-arrange
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/sheet.go b/sheet.go
index 5315d70..c0e9287 100644
--- a/sheet.go
+++ b/sheet.go
@@ -185,22 +185,6 @@ func (f *File) SetActiveSheet(index int) {
return
}
-
-
-func (f *File) GetColumnsLength(sheet string) (int, error) {
- var xlsx xlsxWorksheet
- name := `xl/worksheets/` + strings.ToLower(sheet) + `.xml`
- err := xml.Unmarshal([]byte(f.readXML(name)), &xlsx)
- if ( err != nil ) {
- return -1, err
- }
- rows := len(xlsx.SheetData.Row)
-
- return rows, nil
-
-}
-
-
// Replace xl/workbook.xml XML tags to self-closing for compatible Office Excel 2007.
func workBookCompatibility(workbookMarshal string) string {
workbookMarshal = strings.Replace(workbookMarshal, `xmlns:relationships="http://schemas.openxmlformats.org/officeDocument/2006/relationships" relationships:id="`, `r:id="`, -1)