From 91df311f3d62a7add7cd9340026cfc6290ce55dc Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Sun, 19 Nov 2023 23:51:35 +0100 Subject: compiler: remove dead code around structFieldAttrs structFieldAttrs is filled with empty attrDesc structs and is never changed at runtime. structFieldAttrs[X].CheckConsts is therefore always nil. Signed-off-by: Paul Chaignon --- pkg/compiler/check.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'pkg/compiler/check.go') diff --git a/pkg/compiler/check.go b/pkg/compiler/check.go index 645a73220..b5ced7a13 100644 --- a/pkg/compiler/check.go +++ b/pkg/compiler/check.go @@ -326,10 +326,6 @@ func (comp *compiler) checkAttributeValues() { for _, f := range st.Fields { isOut := hasOutOverlay for _, attr := range f.Attrs { - desc := structFieldAttrs[attr.Ident] - if desc.CheckConsts != nil { - desc.CheckConsts(comp, f, attr) - } switch attr.Ident { case attrOutOverlay.Name: hasOutOverlay = true -- cgit mrf-deployment