From f068f4c0eda9ddaf0f4b02aaef3d0bf2bea1e244 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 12 Aug 2019 18:19:26 +0300 Subject: [PATCH] pkg/vm/stack: drop unused (*RandomAccess).items() GolangCI complains: U1000: func (*RandomAccess).items is unused And it looks like everyone and their dog just use ras.vals without any wrappers when there is a need to access it, so drop the wrapper. --- pkg/vm/stack/stack.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/vm/stack/stack.go b/pkg/vm/stack/stack.go index 2a1b01693..eb08e5d52 100644 --- a/pkg/vm/stack/stack.go +++ b/pkg/vm/stack/stack.go @@ -23,11 +23,6 @@ func New() *RandomAccess { } } -// Items will return all items in the stack -func (ras *RandomAccess) items() []Item { - return ras.vals -} - //Len will return the length of the stack func (ras *RandomAccess) Len() int { if ras.vals == nil {