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:
parent
bc87d3e8e6
commit
f068f4c0ed
1 changed files with 0 additions and 5 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue