Skip to content

Commit 59fa3ce

Browse files
committed
vg/recorder: drop unneeded field from Canvas.
Fixes #771. Signed-off-by: Sebastien Binet <binet@cern.ch>
1 parent 8aad608 commit 59fa3ce

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

vg/recorder/recorder.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ type Canvas struct {
3232
// This includes source filename and line number.
3333
KeepCaller bool
3434

35-
// c holds a backing vg.Canvas. If c is non-nil
36-
// then method calls to the Canvas will be
37-
// reflected to c.
38-
c vg.Canvas
39-
4035
// fonts holds a collection of font/size descriptions.
4136
fonts map[fontID]font.Face
4237
cache *font.Cache
@@ -112,9 +107,6 @@ func (c *Canvas) ReplayOn(dst vg.Canvas) error {
112107
}
113108

114109
func (c *Canvas) append(a Action) {
115-
if c.c != nil {
116-
a.ApplyTo(c)
117-
}
118110
if c.KeepCaller {
119111
a.callerLocation().set()
120112
}

0 commit comments

Comments
 (0)