Clean up residual changes
Remove done TODOs and unnecessary helpers.
This commit is contained in:
parent
6acfdcc5d6
commit
2c6f0f7345
8 changed files with 129 additions and 136 deletions
|
|
@ -31,14 +31,6 @@ import (
|
|||
"github.com/google/cayley/quad"
|
||||
)
|
||||
|
||||
// Parse returns a valid quad.Quad or a non-nil error. Parse does
|
||||
// handle comments except where the comment placement does not prevent
|
||||
// a complete valid quad.Quad from being defined.
|
||||
func Parse(str string) (quad.Quad, error) {
|
||||
q, err := parse([]rune(str))
|
||||
return q, err
|
||||
}
|
||||
|
||||
// Decoder implements simplified N-Quad document parsing.
|
||||
type Decoder struct {
|
||||
r *bufio.Reader
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -33,7 +33,12 @@ import (
|
|||
write data;
|
||||
}%%
|
||||
|
||||
func parse(data []rune) (quad.Quad, error) {
|
||||
// Parse returns a valid quad.Quad or a non-nil error. Parse does
|
||||
// handle comments except where the comment placement does not prevent
|
||||
// a complete valid quad.Quad from being defined.
|
||||
func Parse(statement string) (quad.Quad, error) {
|
||||
data := []rune(statement)
|
||||
|
||||
var (
|
||||
cs, p int
|
||||
pe = len(data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue