summaryrefslogtreecommitdiff
path: root/lex/type.go
diff options
context:
space:
mode:
Diffstat (limited to 'lex/type.go')
-rw-r--r--lex/type.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/lex/type.go b/lex/type.go
index 47439f4..3b49eee 100644
--- a/lex/type.go
+++ b/lex/type.go
@@ -1,10 +1,5 @@
package lex
-import (
- "io"
- "fmt"
-)
-
type Screenplay []Line
type Line struct{
@@ -12,12 +7,3 @@ type Line struct{
Contents string
}
-func Parse(file io.Reader) (out Screenplay) {
- var err error
- line := Line{}
- for err == nil {
- _, err = fmt.Fscanf(file, "%s: %s", &line.Type, &line.Contents)
- out = append(out, line)
- }
- return out
-}