summaryrefslogtreecommitdiff
path: root/sheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2018-05-14 10:12:46 +0800
committerxuri <xuri.me@gmail.com>2018-05-14 10:12:46 +0800
commit167554bfeca1bca54e36d761e2be159358736c9e (patch)
tree5faad60b573af628bcc89828282912167e5d5242 /sheet.go
parenteb62256d165607c6877ce88efbba10c119137b3d (diff)
Improve unit testing, remove redundant code.
Diffstat (limited to 'sheet.go')
-rw-r--r--sheet.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/sheet.go b/sheet.go
index cb50d61..10a0fdb 100644
--- a/sheet.go
+++ b/sheet.go
@@ -193,12 +193,6 @@ func (f *File) setAppXML() {
// library doesn't multiple namespace declarations in a single element of a
// document. This function is a horrible hack to fix that after the XML
// marshalling is completed.
-func replaceRelationshipsNameSpace(workbookMarshal string) string {
- oldXmlns := `<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">`
- newXmlns := `<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main">`
- return strings.Replace(workbookMarshal, oldXmlns, newXmlns, -1)
-}
-
func replaceRelationshipsNameSpaceBytes(workbookMarshal []byte) []byte {
oldXmlns := []byte(`<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">`)
newXmlns := []byte(`<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main">`)