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.
This commit is contained in:
Roman Khimov 2019-08-12 18:19:26 +03:00
parent bc87d3e8e6
commit f068f4c0ed

View file

@ -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 //Len will return the length of the stack
func (ras *RandomAccess) Len() int { func (ras *RandomAccess) Len() int {
if ras.vals == nil { if ras.vals == nil {