From 40f0de0d4b864fd3f9f9c79b928ac303109750ad Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 22 Jan 2020 17:50:44 +0000 Subject: Remove unused function in pagegraph --- cmd/pagegraph/main.go | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'cmd') 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") -- cgit v1.2.1-24-ge1ad