diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-11-05 16:32:57 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-11-06 09:49:23 +0100 |
commit | 2c3efc81064a6e0bdde3d02629f06ca87a7d2c08 (patch) | |
tree | ea29d270907fa79abc39398c3247d6ee07ccb149 /common | |
parent | df8bd4af4f49aec04d039d17ad970058f3b4e1bc (diff) | |
download | hugo-2c3efc81064a6e0bdde3d02629f06ca87a7d2c08.tar.gz hugo-2c3efc81064a6e0bdde3d02629f06ca87a7d2c08.zip |
Alias Page.Scratch to Page.Store (note)
Fixes #13016
Diffstat (limited to 'common')
-rw-r--r-- | common/maps/scratch.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/common/maps/scratch.go b/common/maps/scratch.go index e9f412540..638377216 100644 --- a/common/maps/scratch.go +++ b/common/maps/scratch.go @@ -28,25 +28,6 @@ type Scratch struct { mu sync.RWMutex } -// Scratcher provides a scratching service. -type Scratcher interface { - // Scratch returns a "scratch pad" that can be used to store state. - Scratch() *Scratch -} - -type scratcher struct { - s *Scratch -} - -func (s scratcher) Scratch() *Scratch { - return s.s -} - -// NewScratcher creates a new Scratcher. -func NewScratcher() Scratcher { - return scratcher{s: NewScratch()} -} - // Add will, for single values, add (using the + operator) the addend to the existing addend (if found). // Supports numeric values and strings. // |