From be7d133c1283c39e4efd45a93971fa9ee6a3ced5 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 29 Oct 2015 21:40:59 +0900 Subject: [PATCH] API changes --- core.go | 7 +------ goldsmith.go | 3 +-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/core.go b/core.go index 5c0708f..1a0fd77 100644 --- a/core.go +++ b/core.go @@ -91,10 +91,6 @@ func (gs *goldsmith) AbsDstPath(path string) string { } func (gs *goldsmith) Apply(p Processor) Applier { - return gs.ApplyTo(p, "*") -} - -func (gs *goldsmith) ApplyTo(p Processor, pattern string) Applier { s := gs.stage() gs.wg.Add(1) @@ -106,7 +102,6 @@ func (gs *goldsmith) ApplyTo(p Processor, pattern string) Applier { return gs } -func (gs *goldsmith) Wait() Applier { +func (gs *goldsmith) Complete() { gs.wg.Wait() - return gs } diff --git a/goldsmith.go b/goldsmith.go index 593aeb2..951ad5d 100644 --- a/goldsmith.go +++ b/goldsmith.go @@ -38,6 +38,5 @@ type Processor interface { type Applier interface { Apply(p Processor) Applier - ApplyTo(p Processor, pattern string) Applier - Wait() Applier + Complete() }