go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit 7c491422c62ed4e72d09a9c19fff94e8c41b500c
parent 292f8c31ba56e271fd6f3a0e77ae31a4a9bc3afc
Author: lash <dev@holbrook.no>
Date:   Thu, 20 Apr 2023 19:27:49 +0100

Remove dead code

Diffstat:
Mengine/engine.go | 2+-
Mrender/page.go | 9---------
Drender/render.go | 6------
3 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/engine/engine.go b/engine/engine.go @@ -69,7 +69,7 @@ func(en *Engine) restore() { return } if en.root != location { - en.root = "." //location + en.root = "." } } diff --git a/render/page.go b/render/page.go @@ -128,15 +128,6 @@ func(pg *Page) Sizes() (map[string]uint16, error) { return sizes, nil } -// Keys returns all mapped symbols. -func(pg *Page) Keys() []string { - var r []string - for k, _ := range pg.cacheMap { - r = append(r, k) - } - return r -} - // RenderTemplate is an adapter to implement the builtin golang text template renderer as resource.RenderTemplate. func(pg *Page) RenderTemplate(sym string, values map[string]string, idx uint16) (string, error) { tpl, err := pg.resource.GetTemplate(sym) diff --git a/render/render.go b/render/render.go @@ -1,6 +0,0 @@ -package render - -type Renderer interface { - Keys() []string - Map(key string) error -}