Skip to content

Commit e7d2fa6

Browse files
author
James Cor
committed
remove unused split lines
1 parent 520f150 commit e7d2fa6

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

sql/plan/load_data.go

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
package plan
1616

1717
import (
18-
"strings"
19-
20-
"github.com/dolthub/vitess/go/vt/sqlparser"
18+
"github.com/dolthub/vitess/go/vt/sqlparser"
2119

2220
"github.com/dolthub/go-mysql-server/sql"
2321
)
@@ -69,25 +67,6 @@ func (l *LoadData) IsReadOnly() bool {
6967
return false
7068
}
7169

72-
func (l *LoadData) SplitLines(data []byte, atEOF bool) (advance int, token []byte, err error) {
73-
// Return Nothing if at end of file and no data passed.
74-
if atEOF && len(data) == 0 {
75-
return 0, nil, nil
76-
}
77-
78-
// Find the index of the LINES TERMINATED BY delim.
79-
if i := strings.Index(string(data), l.LinesTerminatedBy); i >= 0 {
80-
return i + len(l.LinesTerminatedBy), data[0:i], nil
81-
}
82-
83-
// If at end of file with data return the data.
84-
if atEOF {
85-
return len(data), data, nil
86-
}
87-
88-
return
89-
}
90-
9170
func (l *LoadData) WithChildren(children ...sql.Node) (sql.Node, error) {
9271
if len(children) != 0 {
9372
return nil, sql.ErrInvalidChildrenNumber.New(l, len(children), 0)

0 commit comments

Comments
 (0)