mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
container/vector: removed some uses of container/vector in other pkgs
R=gri CC=golang-dev https://golang.org/cl/4823054
This commit is contained in:
parent
22f71cde6a
commit
2f4632febc
6 changed files with 22 additions and 32 deletions
|
|
@ -8,7 +8,6 @@
|
|||
package json
|
||||
|
||||
import (
|
||||
"container/vector"
|
||||
"encoding/base64"
|
||||
"os"
|
||||
"reflect"
|
||||
|
|
@ -669,7 +668,7 @@ func (d *decodeState) valueInterface() interface{} {
|
|||
|
||||
// arrayInterface is like array but returns []interface{}.
|
||||
func (d *decodeState) arrayInterface() []interface{} {
|
||||
var v vector.Vector
|
||||
var v []interface{}
|
||||
for {
|
||||
// Look ahead for ] - can only happen on first iteration.
|
||||
op := d.scanWhile(scanSkipSpace)
|
||||
|
|
@ -681,7 +680,7 @@ func (d *decodeState) arrayInterface() []interface{} {
|
|||
d.off--
|
||||
d.scan.undo(op)
|
||||
|
||||
v.Push(d.valueInterface())
|
||||
v = append(v, d.valueInterface())
|
||||
|
||||
// Next token must be , or ].
|
||||
op = d.scanWhile(scanSkipSpace)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue