Skip to content

Commit

Permalink
vg/recorder: drop unneeded field from Canvas.
Browse files Browse the repository at this point in the history
Fixes #771.

Signed-off-by: Sebastien Binet <[email protected]>
  • Loading branch information
sbinet committed Sep 2, 2023
1 parent 8aad608 commit 59fa3ce
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions vg/recorder/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit 59fa3ce

Please sign in to comment.