diff --git a/vg/recorder/recorder.go b/vg/recorder/recorder.go index 69a8abd7..abafcd6b 100644 --- a/vg/recorder/recorder.go +++ b/vg/recorder/recorder.go @@ -32,11 +32,6 @@ type Canvas struct { // This includes source filename and line number. KeepCaller bool - // c holds a backing vg.Canvas. If c is non-nil - // then method calls to the Canvas will be - // reflected to c. - c vg.Canvas - // fonts holds a collection of font/size descriptions. fonts map[fontID]font.Face cache *font.Cache @@ -78,7 +73,7 @@ func (c *Canvas) Reset() { c.Actions = c.Actions[:0] } -// ReplayOn applies the set of Actions recorded by the Recorder onto +// ReplayOn applies the set of Actions recorded by the Canvas onto // the destination Canvas. func (c *Canvas) ReplayOn(dst vg.Canvas) error { if c.fonts == nil { @@ -112,9 +107,6 @@ func (c *Canvas) ReplayOn(dst vg.Canvas) error { } func (c *Canvas) append(a Action) { - if c.c != nil { - a.ApplyTo(c) - } if c.KeepCaller { a.callerLocation().set() } @@ -460,7 +452,7 @@ type Commenter interface { var _ Commenter = (*Canvas)(nil) -// Comment implements a Recorder comment mechanism. +// Comment implements a comment mechanism. type Comment struct { Text string