summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-01-22 17:50:44 +0000
committerNick White <git@njw.name>2020-01-22 17:50:44 +0000
commit40f0de0d4b864fd3f9f9c79b928ac303109750ad (patch)
tree771ba2134fc2dbdf190cd360d5ec5d8e09150c92 /cmd
parentbd8e705822f859dc3c3708081aeaf0a8c9902f62 (diff)
Remove unused function in pagegraph
Diffstat (limited to 'cmd')
-rw-r--r--cmd/pagegraph/main.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/cmd/pagegraph/main.go b/cmd/pagegraph/main.go
index fb2648f..a52d38c 100644
--- a/cmd/pagegraph/main.go
+++ b/cmd/pagegraph/main.go
@@ -6,36 +6,11 @@ import (
"log"
"os"
"path/filepath"
- "strings"
"rescribe.xyz/bookpipeline"
"rescribe.xyz/utils/pkg/hocr"
)
-func walker(confs *[]*bookpipeline.Conf) filepath.WalkFunc {
- return func(path string, info os.FileInfo, err error) error {
- if info.IsDir() {
- return nil
- }
- if !strings.HasSuffix(path, ".hocr") {
- return nil
- }
- avg, err := hocr.GetAvgConf(path)
- if err != nil {
- if err.Error() == "No words found" {
- return nil
- }
- return err
- }
- c := bookpipeline.Conf{
- Conf: avg,
- Path: path,
- }
- *confs = append(*confs, &c)
- return nil
- }
-}
-
func main() {
flag.Usage = func() {
fmt.Fprintln(flag.CommandLine.Output(), "Usage: pagegraph file.hocr graph.png")