From ef1d7d36210f33c75702d8b04b35cb338c99cb2d Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 31 Oct 2015 13:40:16 +0900 Subject: [PATCH] Improvements --- goldsmith.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/goldsmith.go b/goldsmith.go index d948c26..dc917a1 100644 --- a/goldsmith.go +++ b/goldsmith.go @@ -24,7 +24,6 @@ package goldsmith import ( "io/ioutil" - "log" "os" "path" "path/filepath" @@ -72,7 +71,7 @@ func (gs *goldsmith) scan(srcDir string) error { return nil } -func (gs *goldsmith) stage() stage { +func (gs *goldsmith) makeStage() stage { s := stage{ input: gs.stages[len(gs.stages)-1].output, output: make(chan File), @@ -87,7 +86,7 @@ func (gs *goldsmith) NewFile(relPath string) File { } func (gs *goldsmith) Apply(p Processor) Goldsmith { - s := gs.stage() + s := gs.makeStage() go p.Process(gs, s.input, s.output) return gs } @@ -97,8 +96,6 @@ func (gs *goldsmith) Complete(dstDir string) []File { var files []File for file := range s.output { - log.Print(file) - data := file.Data() if data == nil { continue