summaryrefslogtreecommitdiff
path: root/xmlSharedStrings.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmlSharedStrings.go')
-rw-r--r--xmlSharedStrings.go22
1 files changed, 1 insertions, 21 deletions
diff --git a/xmlSharedStrings.go b/xmlSharedStrings.go
index 816c931..e505d26 100644
--- a/xmlSharedStrings.go
+++ b/xmlSharedStrings.go
@@ -11,10 +11,7 @@
package excelize
-import (
- "encoding/xml"
- "strings"
-)
+import "encoding/xml"
// xlsxSST directly maps the sst element from the namespace
// http://schemas.openxmlformats.org/spreadsheetml/2006/main. String values may
@@ -44,23 +41,6 @@ type xlsxSI struct {
PhoneticPr *xlsxPhoneticPr `xml:"phoneticPr"`
}
-// String extracts characters from a string item.
-func (x xlsxSI) String() string {
- if len(x.R) > 0 {
- var rows strings.Builder
- for _, s := range x.R {
- if s.T != nil {
- rows.WriteString(s.T.Val)
- }
- }
- return bstrUnmarshal(rows.String())
- }
- if x.T != nil {
- return bstrUnmarshal(x.T.Val)
- }
- return ""
-}
-
// xlsxR represents a run of rich text. A rich text run is a region of text
// that share a common set of properties, such as formatting properties. The
// properties are defined in the rPr element, and the text displayed to the